Demo 10 public function getIndex() { return "Hello"; } ! public function postProfile() { return 'Profile'; } ! // Any Http Verbs public function anyLogin() { return 'Login'; } ! public function getAdminProfile() { return 'demo10/admin-profile'; } } ! 32
// Demo 11 public function __construct() { $this->beforeFilter('@filterRequests'); } ! public function index(){} ! public function filterRequests($route, $request) { echo 'Filter'; } } ! 34