webshelf /
framework
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Created by PhpStorm. |
||
| 4 | * User: Mark |
||
| 5 | * Date: 01/02/2017 |
||
| 6 | * Time: 18:51. |
||
| 7 | */ |
||
| 8 | |||
| 9 | namespace App\Providers; |
||
| 10 | |||
| 11 | use Illuminate\Support\ServiceProvider; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Class ViewServiceProvider. |
||
| 15 | */ |
||
| 16 | class ViewServiceProvider extends ServiceProvider |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Register component views. |
||
| 20 | */ |
||
| 21 | public function register() |
||
| 22 | { |
||
| 23 | /* |
||
| 24 | * Load the dashboard/admin blade files for views creation. |
||
| 25 | */ |
||
| 26 | $this->loadViewsFrom(resource_path('admin/views'), 'dashboard'); |
||
| 27 | |||
| 28 | /* |
||
| 29 | * Load the websites frontend blade files for views creation. |
||
| 30 | */ |
||
| 31 | $this->loadViewsFrom(resource_path('views'), 'website'); |
||
| 32 | |||
| 33 | /* |
||
| 34 | * Load the module view blade files dynamically. |
||
| 35 | */ |
||
| 36 | $this->loadViewsFrom(base_path('app/Modules'), 'modules'); |
||
| 37 | |||
| 38 | /* |
||
| 39 | * Load the plugins view blade files dynamically. |
||
| 40 | */ |
||
| 41 | $this->loadViewsFrom(base_path('app/Plugins'), 'plugins'); |
||
| 42 | |||
| 43 | /* |
||
| 44 | * 16/03/2018. |
||
| 45 | * Templates for frontend view short codes. |
||
| 46 | */ |
||
| 47 | $this->loadViewsFrom(resource_path('templates'), 'webpage'); |
||
| 48 | |||
| 49 | /* |
||
| 50 | * Errors can be overwritten by the front end website, default to dashboard errors. |
||
| 51 | */ |
||
| 52 | $this->loadViewsFrom([resource_path('views/errors'), resource_path('admin/views/errors')], 'errors'); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 53 | } |
||
| 54 | } |
||
| 55 |