PHP code example of edwinylil1 / laravelwebapp
1. Go to this page and download the library: Download edwinylil1/laravelwebapp library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
edwinylil1 / laravelwebapp example snippets
'manifest' => [
'name' => env('APP_NAME_WA', 'My Web App'),
'short_name' => env('APP_SN_WA', 'My Web App'),
'description' => env('APP_DESCRIPTION_WA', 'Made with love by EVillegas'),
'middleware' => ['web'],
'start_url' => '/',
'lang' => config('app.locale'),
'background_color' => '#A1F188',
'theme_color' => '#69F78C',
'display' => 'standalone',
'orientation'=> 'any',
'status_bar'=> 'black',
'icons' => [
'72x72' => [
'path' => '/images/icons/icon-72x72.png',
'purpose' => 'any'
], ...
],
'splash' => [
'640x1136' => '/images/icons/splash-640x1136.png',
'750x1334' => '/images/icons/splash-750x1334.png',
'828x1792' => '/images/icons/splash-828x1792.png', ...
],
'shortcuts' => [
[
'name' => 'Shortcut Link 1',
'description' => 'Shortcut Link 1 Description',
'url' => '/',
'icons' => [
"src" => "/images/icons/icon-72x72.png",
"purpose" => "any"
]
]
],
'custom' => []
]
...
'custom' => [
'tag_name' => 'tag_value',
'tag_name_2' => 'tag_value_2',
...
]
...
bash
php artisan vendor:publish --provider="LaravelWebApp\Providers\LaravelWebAppServiceProvider"