Support the ongoing development of Laravel.io →
posted 10 years ago
Database

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.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ynotn8te ynotn8te Joined 11 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.