Open makhosi6 opened 3 years ago
I had the same problem. I fixed it by moving @laravelPWA
to the bottom of the head.
@samydens solution worked
No, the solution did not work for me, and It's also failing to Publish
(it doesn't create config/laravelpwa.php
automatically). But when I clone the DEMO everything works.
Make sure you did composer install
(considering it is already composer required, if not you need to: composer require silviolleite/laravelpwa --prefer-dist
) and also make sure you ran php artisan vendor:publish --provider="LaravelPWA\Providers\LaravelPWAServiceProvider"
. Also try to do composer dump-autoload
if nothing works.
Blade doesn't parse the @laravelPWA directive
<!doctype html>
@laravelPWA not working. ! Any solution ?
I don't know what was wrong exactly just cleared the space around added empty lines (above, bellow) the @laravelPWA
@laravelPWA
and it worked, I think the library could be improved using the Manually registered component and end up using something similar to this <x-laravelpwa::meta/>
instead of the directive.
I'm also having issues with this. I ran composer update
, composer install
and the other suggested solutions.
I was able to solve this issue myself by changing the page and thus discarding the cached page.
I don't know what was wrong exactly just cleared the space around added empty lines (above, bellow) the
@laravelPWA
@laravelPWA
and it worked, I think the library could be improved using the Manually registered component and end up using something similar to this
<x-laravelpwa::meta/>
instead of the directive.
This work for me !
Please I'm trying to use this package on my laravel 5 site. but Blade doesn't parse the @laravelPWA directive, instead it appears on the front-end between text tags like this,
<text>@laravelPWA</text>
The directive is inside thehead