Open denitsa-md opened 4 years ago
For someone who wants to help. First of all we need fail test. We have to upload the mail view to test application https://github.com/matchish/laravel-scout-elasticsearch/tree/master/tests/laravel/app Then we have to register the namespace in new service provider and add it here https://github.com/matchish/laravel-scout-elasticsearch/blob/f65731880ac8c2c42c6790e8917550cdca8e30ab/tests/TestCase.php#L44 If we are lucky enough it will break some tests) If no then testing framework doesn't cover this issue and we have to debug it in a real laravel application
Describe the bug
When running
php artisan scout:import
I'm seeing my mail templates get dumped in the console.To Reproduce
I have this mail view:
app\Domain\Reports\Mail\views\report-generated.blade.php
The directory for that view is registered in AppServiceProvider like:
View::addNamespace('report_views', app_path('Domain/Reports/Mail/views'));
This happens when I run
php artisan scout:import
. Notice how the view gets dumped at the start of the command.I haven't experienced this with other commands so I wonder what might be causing this.