Hello 👋
When running artisan command through Laravel Sail, it seems that backslash characters are not escaped correctly.
Running a scout command as recommended by the docs:
artisan scout:import "App\Models\User"
results in this error:
Error
Class "AppModelsUser" not found
at vendor/laravel/scout/src/Console/ImportCommand.php:37
33▕ public function handle(Dispatcher $events)
34▕ {
35▕ $class = $this->argument('model');
36▕
➜ 37▕ $model = new $class;
38▕
39▕ $events->listen(ModelsImported::class, function ($event) use ($class) {
40▕ $key = $event->models->last()->getScoutKey();
41▕
+12 vendor frames
13 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
Whereas running artisan manually through Sail works:
sail artisan scout:import "App\Models\User"
I first thought it was an issue with Scout but now I think it might be a plugin issue.
I "hope" it's the case and I'm not bothering you for nothing. 😅
Hello 👋
When running artisan command through Laravel Sail, it seems that backslash characters are not escaped correctly.
Running a scout command as recommended by the docs:
artisan scout:import "App\Models\User"results in this error:
Whereas running artisan manually through Sail works:
sail artisan scout:import "App\Models\User"I first thought it was an issue with Scout but now I think it might be a plugin issue.
I "hope" it's the case and I'm not bothering you for nothing. 😅