this package makes laravel website a progressive web application.

Overview

Latest Stable Version Daily Downloads Monthly Downloads Total Downloads License PHP Version Require

Laravel PWA

You can follow this video tutorial as well for installation.

Installation

Install the package by the following command,

composer require ladumor/laravel-pwa

Add Provider

Add the provider to your config/app.php into provider section if using lower version of laravel,

Ladumor\LaravelPwa\PWAServiceProvider::class,

Add Facade

Add the Facade to your config/app.php into aliases section,

'LaravelPwa' => \Ladumor\LaravelPwa\LaravelPwa::class,

Publish the Assets

Run the following command to publish config file,

php artisan laravel-pwa:publish

Configure PWA

Add following code in root blade file in header section.

<!-- PWA  -->
<meta name="theme-color" content="#6777ef"/>
<link rel="apple-touch-icon" href="{{ asset('logo.PNG') }}">
<link rel="manifest" href="{{ asset('/manifest.json') }}">

Add following code in root blade file in before close the body.

<script src="{{ asset('/sw.js') }}"></script>
<script>
    if (!navigator.serviceWorker.controller) {
        navigator.serviceWorker.register("/sw.js").then(function (reg) {
            console.log("Service worker has been registered for scope: " + reg.scope);
        });
    }
</script>

License

The MIT License (MIT). Please see License File for more information

You might also like...
A Laravel 5.5 Photo Tagging Web Application
A Laravel 5.5 Photo Tagging Web Application

_ ____ __ ________ ______ | | / / /_ ____ _/ //_ __/ /_ ___/_ __/___ _____ _ | | /| / / __ \/ __ `/ __// / / _

A Simple Store Front Web Application using Laravel and Bootstrap.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

🐍 Web application made in PHP with Laravel where you can interact via API with my Snake game which is made in Python
🐍 Web application made in PHP with Laravel where you can interact via API with my Snake game which is made in Python

Snake web application Project of the web application where you can interact via API with Snake game which is available to download on it. Application

Laravel package to find performance bottlenecks in your laravel application.
Laravel package to find performance bottlenecks in your laravel application.

Laravel Meter Laravel Meter monitors application performance for different things such as requests, commands, queries, events, etc and presents result

Laravel comments - This package enables to easily associate comments to any Eloquent model in your Laravel application

Laravel comments - This package enables to easily associate comments to any Eloquent model in your Laravel application

A web app for detecting backend technologies used in a web app, Based on wappalyzer node module

About Techdetector This a web fingerprinting application, it detects back end technologies of a given domain by using the node module wappalyzer. And

Jumpstart your web development journey with the HALT Stack Starter Kit, a one-command solution for creating dynamic, scalable, and clean web applications.

Welcome to the HALT Stack Starter Kit! This kit is designed to help you kickstart your web development projects using the HALT Stack, a powerful combi

Ebansos (Electronic Social Assistance) is a web application that provides citizen data management who will receive social assistance to avoid misdirection assistance from public service/government.

E Bansos Ebansos (Electronic Social Assistance) is a web application that provides citizen data management who will receive social assistance to avoid

Freelancer notes is an open source web application

#What is Freelancer Notes Freelancer Note is an freelance project management application. It is very light weight and easy to use. You are able to man

Comments
  • pwa on mobile

    pwa on mobile

    Hi, I tried to install clean laravel 8 project with your project Like a web I used the default welcome view from laravel. On desktop, everything works fine but when I saved PWA on the home screen on mobile and open it again from home screen I got 404. Can't you advise me why?

    Thanks!

    opened by vaskomichal 2
  • Get an error in console from the generated sw.js

    Get an error in console from the generated sw.js

    Chrome version Version 99.0.4844.84 (Officiell version) (arm64)

    Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Request scheme 'chrome-extension' is unsupported
        at sw.js:39:26
    
    image
    opened by tanthammar 1
  • Update composer.json

    Update composer.json

    PwaServiceProvider should be PWAServiceProvider in order to work well with case sensitive system. Otherwise composer throws an error:

    In ProviderRepository.php line 208:
    Class '\Ladumor\LaravelPwa\PwaServiceProvider' not found
    Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

    opened by da-sie 1
Releases(v0.0.3)
  • v0.0.3(Apr 24, 2022)

    What change?

    • fixed Get an error in the console from the generated sw.js (https://github.com/shailesh-ladumor/laravel-pwa/issues/2) - Credit @tanthammar
    Source code(tar.gz)
    Source code(zip)
  • v0.0.2(Oct 7, 2021)

    What change?

    • PwaServiceProvider should be PWAServiceProvider in order to work well with case-sensitive systems. (https://github.com/shailesh-ladumor/laravel-pwa/pull/1) - Credit @naszybko
    Source code(tar.gz)
    Source code(zip)
  • v0.0.1(Sep 29, 2021)

Owner
Shailesh Ladumor
PM & TL at InfyOm Technologies Instructor at https://www.youtube.com/c/LaravelPackageTutorial
Shailesh Ladumor
A package that makes it easy to have the `artisan make:` commands open the newly created file in your editor of choice.

Open On Make A package that makes it easy to have the artisan make: commands open the newly created file in your editor of choice. Installation compos

Andrew Huggins 94 Nov 22, 2022
Makes working with DateTime fields in Laravel's Nova easier

This package adds a DateTime field with support for a global DateTime format, syntactic sugar for formatting individual DateTime fields and powerful d

wdelfuego 6 Aug 4, 2022
Laravel package that converts your application into a static HTML website

phpReel Static Laravel Package phpReel Static is a simple Laravel Package created and used by phpReel that converts your Laravel application to a stat

phpReel 16 Jul 7, 2022
A Pocketmine 4.0 Plugin which makes your server query = Current players + 1 Total Slots

The Better-Query Plugin This Plugin implements Better Query System **(i.e. 0/1 as player count)** the server total slots increases by 1 after a player

RealBJsingh 3 May 14, 2022
My aim is to make a complete website that should have all the essential parts a website should have.

Gaming-Ninja I aim to make a complete website that should have all the essential parts a website should have. https://gamingninja-3399.000webhostapp.c

Anand Jaiswar 3 Nov 23, 2022
Jetstrap is a lightweight laravel 8 package that focuses on the VIEW side of Jetstream / Breeze package installed in your Laravel application

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

null 686 Dec 28, 2022
A Laravel chat package. You can use this package to create a chat/messaging Laravel application.

Chat Create a Chat application for your multiple Models Table of Contents Click to expand Introduction Installation Usage Adding the ability to partic

Tinashe Musonza 931 Dec 24, 2022
Live Helper Chat - live support for your website. Featuring web and mobile apps, Voice & Video & ScreenShare. Supports Telegram, Twilio (whatsapp), Facebook messenger including building a bot.

Live helper chat It's an open-source powered application, which brings simplicity and usability in one place. With live helper chat you can bring live

Live Helper Chat 1.7k Dec 29, 2022
A Laravel package to fetch Open Graph data of a website.

OpenGraph is a laravel package to fetch Open Graph metadata of a website/link. Features Easily fetch metadata of a URL. Laravel OpenGraph fetches all

Shashi Prakash Gautam 128 Dec 24, 2022
Web application with Laravel in Backend and VueJS in Frontend

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Benjdia Saad 1 Oct 12, 2021