Hi all, I'm a newbie at Laravel. I'm trying to query my Database and have already changed the config file so that all my DB credentials are in place. I have followed the laracast video on Accessing a Database to the letter, but whenever i try to run the routes.php on my browser, i get the error above. Can someone pls point me to the right direction here? Any help would be greatly appreciated. Heres the route.php file:
<?php
Route::get('/', function()
{
$topPages = DB::table('webmasters') -> get();
return $topPages;
});
Thanks.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community