Problems with using Laravels+DcatAdmin Author: Chuwen Time: 2023-12-04 Classification: PHP According to the Laravels document, add: ```php 'cleaners' => [ Hhxsv5\LaravelS\Illuminate\Cleaners\SessionCleaner::class, Hhxsv5\LaravelS\Illuminate\Cleaners\AuthCleaner::class, Hhxsv5\LaravelS\Illuminate\Cleaners\DcatAdminCleaner::class ], ``` In fact, there will still be problems. For example, the menu bar won't render If it is easy to solve this problem, please refer to https://github.com/hhxsv5/laravel-s/issues/251#issuecomment -971224092 Write a cleanup to clean up. The following are the operation steps I extracted according to this issue ##Step 1. Create a folder such as' app/Cleaners' 2. Create a new file 'app/Cleaners/DcatAdminCleaner. php' whose content is ```php <? php namespace App\Cleaners; use Dcat\Admin\Octane\Listeners\FlushAdminState; class DcatAdminCleaner extends \Hhxsv5\LaravelS\Illuminate\Cleaners\DcatAdminCleaner { public function clean() { $flushAdminState = new FlushAdminState($this->currentApp); $flushAdminState->handle(null); } } ``` 3. Replace the content 'Hhxsv5 LaravelS Illuminate Cleaners DcatAdminCleaner:: class' of' config/laravels. php 'with' App Cleaners DcatAdminCleaner:: class' ! []( https://cdn.nowtime.cc/2023/12/04/1914189827.png ) label: Laravel