silviolleite / laravel-pwa

Looks like an app, feels like an app, but IS NOT an app.
MIT License
975 stars 156 forks source link

Blade doesn't parse the @laravelPWA directive #58

Open makhosi6 opened 3 years ago

makhosi6 commented 3 years ago

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 the head

samydens commented 3 years ago

I had the same problem. I fixed it by moving @laravelPWA to the bottom of the head.

Silidrone commented 3 years ago

@samydens solution worked

makhosi6 commented 3 years ago

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.

Silidrone commented 3 years ago

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.

me-devms commented 3 years ago

Blade doesn't parse the @laravelPWA directive

me-devms commented 3 years ago

<!doctype html>

Laravel - @yield('title') @laravelPWA @yield('styles') @livewireStyles @yield('content') @yield('scripts') @livewireScripts

@laravelPWA not working. ! Any solution ?

IlyasDiker commented 1 year ago

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.

QazCetelic commented 1 year ago

image

I'm also having issues with this. I ran composer update, composer install and the other suggested solutions.

QazCetelic commented 1 year ago

I was able to solve this issue myself by changing the page and thus discarding the cached page.

gn306029 commented 1 year ago

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 !