© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
fathi tarek
Mev-Rael
Executive Product Leader & Mentor for High-End Influencers and Brands @ mevrael.com
What do you mean by Model::('table')? It is written wrong btw, should be at least any method after ::
DB is used as a query builder, hence DB::table('table') is a beginning of a general query from that table.
Model::method() is used to execute queries on that specific model, for example Users::all() will be same as DB::table('users')->get();
Model is a wrapper around Query builder. You can access it from Model::query() as well.
Mev-Rael
Executive Product Leader & Mentor for High-End Influencers and Brands @ mevrael.com
What do you mean by Model::('table')? It is written wrong btw, should be at least any method after ::
DB is used as a query builder, hence DB::table('table') is a beginning of a general query from that table.
Model::method() is used to execute queries on that specific model, for example Users::all() will be same as DB::table('users')->get();
Model is a wrapper around Query builder. You can access it from Model::query() as well.