Try removing $links->toArray(); statement. I believe you do not need that.
FYI, if your application is still in development, change 'debug' => false, to 'debug' => true...
Try this: public function login_article($id){ if(user checks out){ return Redirect::route('view_arti...
Try checking if you have an empty result..you can simply do count($results) and put inside the forea...
Use relationships http://laravel.com/docs/eloquent#relationships
The Laravel portal for problem solving, knowledge sharing and community building.