Package Data | |
---|---|
Maintainer Username: | lkovace18 |
Maintainer Contact: | luka.kovaceic.jr@gmail.com (Luka Kovačević) |
Package Create Date: | 2017-03-03 |
Package Last Update: | 2017-03-04 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:25:10 |
Package Statistics | |
---|---|
Total Downloads: | 8 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
here is solution ...
To get started, use Composer to add the package to your project's dependencies:
composer require lkovace18/laravel-presentation-mode
After installing the Laravel presentation mode, register the lKovace18\PresentationMode\PresentationModeServiceProvider
in your config/app.php
configuration file:
'providers' => [
// Other service providers...
lKovace18\PresentationMode\PresentationModeServiceProvider::class,
],
add setup your .env
file:
PRESENTATION_MODE=true
PRESENTATION_KEY=<yourkey>
Publish configuration
php artisan vendor:publish --provider="lKovace18\PresentationMode\PresentationModeServiceProvider" --tag="config"
Edit configuration file config/presentation-mode.php
to suit your needs.
If you want to modify under_development view you can publish it:
php artisan vendor:publish --provider="lKovace18\PresentationMode\PresentationModeServiceProvider" --tag="views"
Or you can make your own route and view and add it in config config/presentation-mode.php
:
/**
* url of under development page
*/
'under_development_url' => <your_in_development_url>,
If you want to modify translations for view publish:
php artisan vendor:publish --provider="lKovace18\PresentationMode\PresentationModeServiceProvider" --tag="translations"
If you want to make custom middleware you can add the PresentationMode
facade to the aliases
array in your app
configuration file:
'PresentationMode' => lKovace18\PresentationMode\Facades\PresentationMode::class,
- finish and refactor tests
- make command for setting presentation mode on
- finish documentation
Laravel Presentation Mode is open-sourced software licensed under the MIT license