title: Laravel 4 Controller Before and After function
body: <p>I have a Base Controller that all other controllers will extend it.
  I want to do some theme and validation and also loading widgets in its Before function.</p>
  
  <p>I know that i could handle this with Routes filter but i don't want to place my code inside router i want to every controllers actions first execute "Before function" and then execute "After function" of this Base controller like Laravel 3.</p>
  
  <pre><code>class FrontController extends \BaseController {
      protected $layout = 'home.index';
      public function __construct() {
       }
  
      public function before() {
          // Do some theme and validation
      }
  
  
      public function __call($method, $parameters) {
  
          return Response::abort('404');
      } 
  </code></pre>
  
  <p>Update : I'm looking for a way that for example I could change theme based on a page config or load sidebars widgets after main controller completed its function and ... Because of that I want to access to  $this.</p>