高版本安装laravel-admin,报错
xuexi 2026-04-02 10:29:10 发表在:PHP 查看数:10
composer config --merge audit.ignore PKSA-fwvh-pm3c-1m7b
composer config --merge audit.ignore PKSA-14t7-my9b-963d

vendor/encore/laravel-admin/resources/views/partials/toastr.blade.php

@if(Session::has('toastr'))
    @php
        $toastr   = Session::pull('toastr');

        // 取出数组第 0 项,确保是字符串
        $type     = \Illuminate\Support\Arr::get($toastr, 'type.0', 'success');
        $message  = \Illuminate\Support\Arr::get($toastr, 'message.0', '');
        $options  = json_encode(\Illuminate\Support\Arr::get($toastr, 'options', []));
    @endphp

    <script>
        $(function () {
            toastr.{{ $type }}('{!! $message !!}', null, {!! $options !!});
        });
    </script>
@endif
最近访问时间:2026-04-02 22:04:16
知识库:437条鸣谢:TAY  备案号:蜀ICP备2024090044号