Class 'User' not found in Laravel

unfunnyguy

New Member
I keep getting\[code\]Unhandled ExceptionMessage:Class 'User' not foundLocation:C:\wamp\www\laravel\laravel\auth\drivers\eloquent.php on line 70\[/code\]When I'm logging in a user. I don't think there's any problem in eloquent.php. Please take a look at my login controller:\[code\]class Login_Controller extends Base_Controller { public $restful = true; public function get_index(){ return View::make('login'); } public function post_index(){ $username = Input::get('username'); $password = Input::get('password'); $user_details = array('username' => $username, 'password' => $password); if ( Auth::attempt($user_details) ) { return Redirect::to('home.index'); } else { return Redirect::to('login') ->with('login_errors', true); } }}\[/code\]This is the view of login:\[code\]{{ Form::open('login') }} <!-- username field --> <p>{{ Form::label('username', 'Username') }}</p> <p>{{ Form::text('username') }}</p> <!-- password field --> <p>{{ Form::label('password', 'Password') }}</p> <p>{{ Form::password('password') }}</p> <!-- submit button --> <p>{{ Form::submit('Login', array('class' => 'btn btn-primary')) }}</p>{{ Form::close() }}\[/code\]And routes.php:\[code\]<?phpRoute::controller(Controller::detect()); // This line will map all our requests to all the controllers. If the controller or actions don
 
Back
Top