PHP Laravel 4 - before & after action
We may need to perform some actions before the controller function get called.
For example
Check user authentication before access to certain page.
AccountController.php
1 |
|
The filter function is in
app/filters.php
1 |
|
References: