Example #1
0
 /**
  * Run the route action and return the response.
  *
  * @return mixed
  */
 public function run()
 {
     $app = app();
     if ($app['router']->routingToController($this->action) === true) {
         $this->action = $app['router']->makeControllerActionClosure($this->action);
     }
     return parent::run();
 }
Example #2
0
 public function run(Request $request)
 {
     $this->container = $this->container ?: Container::getInstance();
     return parent::run($request);
 }