Initial laravel import

This commit is contained in:
snipe
2013-11-13 01:59:39 -05:00
parent 87e90f12ea
commit feda21a6e3
145 changed files with 18621 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
<?php
class BaseController extends Controller {
/**
* Message bag.
*
* @var Illuminate\Support\MessageBag
*/
protected $messageBag = null;
/**
* Initializer.
*
* @return void
*/
public function __construct()
{
// CSRF Protection
$this->beforeFilter('csrf', array('on' => 'post'));
//
$this->messageBag = new Illuminate\Support\MessageBag;
}
/**
* Setup the layout used by the controller.
*
* @return void
*/
protected function setupLayout()
{
if ( ! is_null($this->layout))
{
$this->layout = View::make($this->layout);
}
}
}