Guest User

Untitled

a guest
Nov 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Call to undefined method AppHttpControllersSentry::check()
  2.  
  3. Route::group(array('before' => 'superadmin'), function()
  4. {
  5. Route::get('/','HomeController@main');
  6.  
  7. });
  8.  
  9. class HomeController extends BaseController {
  10.  
  11. //Some codes here
  12. }
  13.  
  14. use SentrySentryLaravelSentryLaravel;
  15. class Sentry extends SentryLaravel
  16. {
  17.  
  18. }
  19.  
  20. class BaseController extends Controller {
  21.  
  22. /**
  23. * Setup the layout used by the controller.
  24. *
  25. * @return void
  26. */
  27. public $data = array();
  28.  
  29. public function __construct()
  30. {
  31. if (Sentry::check())
  32. {
  33. // User is not logged in, or is not activated
  34. $this->data['admin'] = Sentry::getUser();
  35. }
  36. }
  37.  
  38. protected function setupLayout()
  39. {
  40. if ( ! is_null($this->layout))
  41. {
  42. $this->layout = View::make($this->layout);
  43. }
  44. }
  45.  
  46. }
Add Comment
Please, Sign In to add comment