12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace App\Providers;
- use Illuminate\Support\ServiceProvider;
- use Illuminate\Support\Facades\Auth;
- class AppServiceProvider extends ServiceProvider
- {
- /**
- * Bootstrap any application services.
- *
- * @return void
- */
- public function boot()
- {
- //$user_id = \Auth::user()->id;
- view()->share('share_noti', [3]);
- view()->composer('*', 'App\Http\ViewComposers\GlobalComposer');
- }
- /**
- * Register any application services.
- *
- * @return void
- */
- public function register()
- {
- //
- }
- }
|