boot() public method

Define your route model bindings, pattern filters, etc.
public boot ( ) : void
return void
 /**
  * Define your route model bindings, pattern filters, etc.
  *
  * @param  \Illuminate\Routing\Router  $router
  * @return void
  */
 public function boot(Router $router)
 {
     //
     parent::boot($router);
 }
コード例 #2
0
 /**
  * Bootstrap the application services
  *
  * @param Router $router
  */
 public function boot(Router $router)
 {
     $this->publishes([__DIR__ . '/../config/lavalang.php' => config_path('lavalang.php')], 'lavalang');
     parent::boot($router);
 }