So far I have the following model:
class Listing extends Eloquent { //Class Logic HERE }
I want a basic function that retrieves the first
The simplest way in laravel 5 is:
$listings=Listing::take(10)->get(); return view('view.name',compact('listings'));