Laravel eloquent Model: class Flight extends Model { protected $table='my_flights'; } Controller: use App\Models\Flight; $flights = Flight::where('active', 1) ->orderBy('name') ->take(10) ->get(); Tags: api development tutorial, blade templates tutorial, eloquent orm tutorial, laracasts, laravel, laravel 10 course for beginners, laravel 10 for beginners, laravel authentication tutorial, laravel authorization tutorial, laravel course, laravel crud tutorial, laravel database tutorial, laravel for beginners, laravel for complete beginners, laravel forms tutorial, laravel from scratch, laravel full course, laravel full course for beginners, laravel mvc tutorial, laravel php, laravel php framework tutorial, laravel php framework tutorial for beginners, laravel rest api tutorial, laravel routes, laravel routing tutorial, laravel tutorial, laravel tutorial for beginners, laravel tutorial project, laravel validation tutorial, learn laravel, learn laravel 10 from scratch, learn laravel for beginners, php framework, php framework laravel, php framework tutorial, php framework tutorial for beginners, restful api tutorial, web development Read more articles Previous PostLaravel checkout page with signup account Next PostLaravel authentication You Might Also Like Union in laravel July 28, 2023 Laravel pagination October 15, 2023 Generate QR Scanner In Laravel July 22, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.