Artisan:call is not working for package command

I am using Artisan::call to call a command from a package (that I have created) but its not finding that command and showing error "message": "The command \"sync:reloadly\" does not exist.", "exception": "Symfony\\Component\\Console\\Exception\\CommandNotFoundException", "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Console/Application.php", "line": 182, This command is working on console but not in PHP code >Solution : If this command is working… Read More Artisan:call is not working for package command

Use Explicit or Implicit Model Binding on Routes in Laravel Package

I am migrating some app functionality into a Laravel package. The package includes Models, Controllers and routes. I am using Laravel 9 Everything is working except my Models are not biding to the routes so the models are not being automatically resolved. // Route Route::get(‘/medium/{medium}’, [\ArtMoi\Http\Controllers\MediumController::class, ‘fetch’] )->name("get-medium"); Model does not automatically load. In the… Read More Use Explicit or Implicit Model Binding on Routes in Laravel Package