controller.php 523 B

1234567891011121314151617181920
  1. <?php namespace Laravel;
  2. abstract class Controller extends Resolver {
  3. /**
  4. * A stub method that will be called before every request to the controller.
  5. *
  6. * If a value is returned by the method, it will be halt the request cycle
  7. * and will be considered the response to the request.
  8. *
  9. * @return mixed
  10. */
  11. public function before() {}
  12. /**
  13. * Magic Method to handle calls to undefined functions on the controller.
  14. */
  15. public function __call($method, $parameters) { return $this->response->error('404'); }
  16. }