Livewirestyles not loading – Laravel blade directive not showing







I just freshly installed Laravel with command: composer create-project –prefer-dist laravel/laravel blog
Then run: composer require livewire/livewire

I have created new /route in the web.php routes.
Called Controller method in the route definition.
Called blade view from the controller method.
This blade view extends layouts.app
In the layouts/app.blade.php I have totaly simple code with @livewireStyles and @livewireScripts placed in the code.
I am running my site on localhost with: php artisan serve

But these directives are not loading. They show as a simple text.

I have followed some advices from the RESOLVED: @livewireScripts and @livewireStyles showing on page with no help.
I tried @livewireStyles() – adding brackets.
I tried: composer dump-autoload
I tried: php artisan config:cache
After each of them I restarted: php artisan serve

But nothing helped.

Then I followed Blade directive not working article.
Tried: php artisan view:clear

Not working.

I forgot to mention that at the beginning I tried of course also the Laravel 7 alternative syntax: . This one is not showing as a text on the page, but still rest unprocessed as a html tag in the code.

And you know what I have discovered?
I have run: composer require livewire/livewire
…in a parent directory of the project :))))