invoiceninja/app/Http/Controllers/BaseController.php

28 lines
545 B
PHP
Raw Normal View History

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