© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
fathi tarek
Aniketh Saha
I am web developer with a special crush on blockchain technology and having affairs with node.js and react.js.
we use DB::table(' ') when we are not using models for working with database
DB::table(' ')
and we use model::() when we use model and eloquent as it is one of the advantage of laravel and other MVC framework with different method
model::()
using model makes the operation easy and safer.
another way to explain the difference is the end point of the DB::table('') is the database and the end point of model::('') is the table
DB::table('')
model::('')
Aniketh Saha
I am web developer with a special crush on blockchain technology and having affairs with node.js and react.js.
we use
DB::table(' ')when we are not using models for working with databaseand we use
model::()when we use model and eloquent as it is one of the advantage of laravel and other MVC framework with different methodusing model makes the operation easy and safer.
another way to explain the difference is the end point of the
DB::table('')is the database and the end point ofmodel::('')is the table