Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Call to undefined method AppHttpControllersSentry::check()
- Route::group(array('before' => 'superadmin'), function()
- {
- Route::get('/','HomeController@main');
- });
- class HomeController extends BaseController {
- //Some codes here
- }
- use SentrySentryLaravelSentryLaravel;
- class Sentry extends SentryLaravel
- {
- }
- class BaseController extends Controller {
- /**
- * Setup the layout used by the controller.
- *
- * @return void
- */
- public $data = array();
- public function __construct()
- {
- if (Sentry::check())
- {
- // User is not logged in, or is not activated
- $this->data['admin'] = Sentry::getUser();
- }
- }
- protected function setupLayout()
- {
- if ( ! is_null($this->layout))
- {
- $this->layout = View::make($this->layout);
- }
- }
- }
Add Comment
Please, Sign In to add comment