2015-03-16 22:45:25 +01:00
|
|
|
<?php namespace App\Http\Controllers;
|
|
|
|
|
2015-10-28 20:22:07 +01:00
|
|
|
use Illuminate\Foundation\Bus\DispatchesCommands;
|
|
|
|
|
2015-03-16 22:45:25 +01:00
|
|
|
class BaseController extends Controller
|
|
|
|
{
|
2015-10-28 20:22:07 +01:00
|
|
|
use DispatchesCommands;
|
|
|
|
|
2015-03-16 22:45:25 +01:00
|
|
|
/**
|
|
|
|
* Setup the layout used by the controller.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function setupLayout()
|
|
|
|
{
|
|
|
|
if (! is_null($this->layout)) {
|
|
|
|
$this->layout = View::make($this->layout);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->beforeFilter('csrf', array('on' => array('post', 'delete', 'put')));
|
|
|
|
}
|
|
|
|
}
|