laravel-pwa icon indicating copy to clipboard operation
laravel-pwa copied to clipboard

Blade doesn't parse the @laravelPWA directive

Open makhosi6 opened this issue 3 years ago • 10 comments

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

makhosi6 avatar Mar 07 '21 19:03 makhosi6

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

samydens avatar Mar 08 '21 09:03 samydens

@samydens solution worked

Silidrone avatar Mar 27 '21 17:03 Silidrone

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.

makhosi6 avatar Mar 27 '21 18:03 makhosi6

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.

Silidrone avatar Mar 27 '21 21:03 Silidrone

Blade doesn't parse the @laravelPWA directive

me-devms avatar May 30 '21 10:05 me-devms

Laravel - @yield('title')

<link rel="stylesheet" href="assets/css/style.css">
@laravelPWA
@yield('styles')
@livewireStyles
@yield('content')

@yield('scripts') @livewireScripts

@laravelPWA not working. ! Any solution ?

me-devms avatar May 30 '21 10:05 me-devms

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.

IlyasDiker avatar Feb 10 '23 20:02 IlyasDiker

image

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

QazCetelic avatar Apr 18 '23 09:04 QazCetelic

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

QazCetelic avatar Apr 20 '23 09:04 QazCetelic

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 !

gn306029 avatar Aug 20 '23 09:08 gn306029