I'm trying to get an instance of the DB class inside my Middleware and it's giving the following error:
Class 'DB' not found
public function handle($request, Closure $next) {
$results = DB::select("SELECT * FROM usuarios");
var_dump($results);
return $next($request);
}
How do I use the DB class at this point in the code?