I am new to laravel. Recently I cloned sample project from github. When I try to execute php artisan route:list
shows
PHP Fatal error: Call to a member function getMemberType() on a non-object in /...app/Http/Controllers/Admin/BaseAdminController.php on line 91
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to a member function getMemberType() on a non-object
BaseAdminController.php
public function __construct(EmployeeDetails $employeeDetails)
{
$this->middleware('auth');
if(Auth::user()->getMemberType() != 'employee') //Line 91
{
Auth::logout();
return Redirect::to('secure/login');
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1KrcJ8X
via IFTTT
Aucun commentaire:
Enregistrer un commentaire