| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace App\Providers;
- use Illuminate\Contracts\View\Factory as View;
- use Illuminate\Support\ServiceProvider;
- class ThemeServiceProvider extends ServiceProvider
- {
- /**
- * Bootstrap the application services.
- *
- * @return void
- */
- public function boot(View $view)
- {
- $theme = config('tipask.theme','default');
- $view->addNameSpace('theme', [
- base_path()."/resources/views/themes/$theme",
- base_path().'/resources/views/themes/default',
- ]);
- }
- /**
- * Register the application services.
- *
- * @return void
- */
- public function register()
- {
- //
- }
- }
|