Hi mjmgooch.
You're missing a ->get() after the select. When you add it you will probably get a SQL syntax error.
Instead of writing raw sql to the database, I strongly racommend you to use Eloquent. Laravel is a MVC framework. Every model is a class and represents a table in your database (not allways).
With Eloquent you can make queries even when you don't have a model.
DB::table('tblVisit')->select('VisitID')->take(10)->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community