123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace App\Providers;
- use Illuminate\Support\Facades\Auth;
- use Illuminate\Support\ServiceProvider;
- class AppServiceProvider extends ServiceProvider
- {
- /**
- * Register any application services.
- *
- * @return void
- */
- public function register()
- {
- //
- }
- /**
- * Bootstrap any application services.
- *
- * @return void
- */
- public function boot()
- {
- //
- view()->composer('*', function($view)
- {
- $roles['administrator'] = ['dashboard','orderlisting','show_order','marketing','invetory','order-history','outlets','outlets-form','outlets-address','outlets-delivery','outlets-ordering-mode','outlets-pickup','outlets-contactless-dining','pause-order'];
- $roles['manager'] = ['dashboard','orderlisting','show_order','marketing','invetory','order-history','outlets','outlets-form','outlets-address','outlets-delivery','outlets-ordering-mode','outlets-pickup','outlets-contactless-dining','pause-order'];
- // $roles['staff'] = ['orderlisting','show_order','marketing','pause-orders'];
- $roles['staff'] = ['orderlisting','show_order','invetory'];
- $view->with('roles',$roles);
- });
- }
- }
|