You need to import the class DB into your file.
You can do this by putting the following at the top...
This can be solved pretty easily by using Middleware (http://laravel.com/docs/5.0/middleware)
We'd like to thank these
for supporting us
Your logo here?
The Laravel portal for problem solving, knowledge sharing and community building.