crudbooster icon indicating copy to clipboard operation
crudbooster copied to clipboard

WDF whith crudbooster. Error in all about it -> \config\lfm.php): failed to open stream: No such file or directory?[39 ;22m

Open Lesnier opened this issue 3 years ago • 2 comments

error in execute command php artisan crudboosetr:update image

Lesnier avatar Aug 24 '21 01:08 Lesnier

try run php artisan vendor:publish for the first

fherryfherry avatar Aug 27 '21 15:08 fherryfherry

thank you ... i will test it....

thanks

El vie., 27 de agosto de 2021 10:53 a. m., Ferry Ariawan < @.***> escribió:

try run php artisan vendor:publish for the first

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/crocodic-studio/crudbooster/issues/1725#issuecomment-907301994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEE5J7TXPU4YRH3KUNBX42TT66YGXANCNFSM5CVYSJEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Lesnier avatar Aug 27 '21 16:08 Lesnier

try run php artisan vendor:publish for the first

i was try using it.. but still got problem

==========================

ErrorException

file_get_contents(......./config/lfm.php): failed to open stream: No such file or directory

at vendor/crocodicstudio/crudbooster/src/commands/CrudboosterUpdateCommand.php:51 47▕ $this->call('vendor:publish', ['--tag' => 'cb_lfm', '--force' => true]); 48▕ $this->call('vendor:publish', ['--tag' => 'cb_localization', '--force' => true]); 49▕ 50▕ $configLFM = config_path('lfm.php'); ➜ 51▕ $configLFM = file_get_contents($configLFM); 52▕ $configLFMModified = str_replace("['web','auth']", "['web','\crocodicstudio\crudbooster\middlewares\CBBackend']", $configLFM); 53▕ $configLFMModified = str_replace('Unisharp\Laravelfilemanager\Handlers\ConfigHandler::class', 'function() {return Session::get("admin_id");}', $configLFMModified); 54▕ $configLFMModified = str_replace('auth()->user()->id', 'Session::get("admin_id")', $configLFMModified); 55▕ $configLFMModified = str_replace("'alphanumeric_filename' => false", "'alphanumeric_filename' => true", $configLFMModified);

  +14 vendor frames 

15 artisan:37 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

arrazka avatar Nov 19 '22 12:11 arrazka