Package Data | |
---|---|
Maintainer Username: | renedekat |
Maintainer Contact: | renedekat@9lives-development.com (Rene de Kat) |
Package Create Date: | 2017-01-16 |
Package Last Update: | 2017-01-18 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-04-30 15:05:29 |
Package Statistics | |
---|---|
Total Downloads: | 44 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
By default Laravel throws an error when a view file cannot be found. This package replaces the default view finder, and creates your missing view files on the fly, based on a template.
The default template can be found in resources/assets/pages/missing.blade.php after you've published it.
Via Composer
$ composer require renedekat/laravel-view-finder-creater --sort-packages
Replace the default ViewServiceProvider
// config/app.php
'providers' => [
...
//Illuminate\View\ViewServiceProvider::class,
ReneDeKat\LaravelViewFileFinder\ViewServiceProvider::class,
];
Or, if you only want to use it locally (handy during development)
// config/app.php
'providers' => [
...
//Illuminate\View\ViewServiceProvider::class,
];
// app/Providers/AppServiceProvider
public function register()
{
...
if ('local' == $this->app->environment()) {
$this->app->register(\ReneDeKat\LaravelViewFileFinder\ViewServiceProvider::class);
} else {
$this->app->register(\Illuminate\View\ViewServiceProvider::class);
}
...
}
The missing page template file must be published with this command:
php artisan vendor:publish --provider="ReneDeKat\LaravelViewFileFinder\ViewServiceProvider" --tag="assets"
It will be published in resources/assets/pages/missing.blade.php
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email renedekat@9lives-development.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.