1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Http/Controllers/BaseController.php

26 lines
539 B
PHP
Raw Normal View History

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')));
}
}