rajtechnologies/laravel-tools
Composer 安装命令:
composer require rajtechnologies/laravel-tools
包简介
All Type of Base Tools to Helping Development and Repository Generator
关键字:
README 文档
README
Laravel Development Tools https://github.com/RajTechnologiesPvtLtd/laravel-tools
Installation on laravel
- In order to install Laravel Tools, just add the following to your composer. Then run
composer:
composer require rajtechnologies/laravel-tools
- Open your
config/app.phpand add the following to theprovidersarray:
RajTechnologies\Tools\ToolServiceProvider::class,
Package Features
- Clear Cache
- Routes List
- HTTP Status Code List
- Laravel App Convert To PWA App
URL Routes
| Name | URL | Description |
|---|---|---|
| Clear Cache | clear-cache | all type cache clear in larevel |
| HTTP status Code | httplist | HTTP Status Code List (cheat sheet) |
| Routes List | routeslist | All Routes List |
| API Routes List | routeslist?only=api | Only API Routes List |
PWA App
- Open your
config/app.phpand add the following to theprovidersarray:
'LaravelPwa' => \RajTechnologies\Tools\LaravelPwa::class,
Publish the Assets For PWA App
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>
Contributing
Maintenance by Raj Technologies Pvt Ltd (For Laravel Starter Project)
License
The Laravel Tools is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 145
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-21