I'm using Laradock with Laravel 7.24, and I can't make a Blade template component work.
I've followed the tutorial from the official documentation page, so, inside the docker-machine executed:
php artisan make:component Alert
And placed the component inside of the layout blade template:
<x-alert/>
But it throws the following error:
Target class [Illuminate\Support\Facades\App\View\Components\Alert] does not exist. (View: /var/www/resources/views/layouts/app.blade.php)
Does anyone know what is the issue?
Thanks!
app/view/components
2. Runphp artisan view:clear
to reset compiled views – cdwyer