DB facade Tricks

Browse latest tricks and tips on DB facade.

DB prefix in Lumen Framework.

How to use db prefix in Lumen? To use db prefix in Lumen, In your .env file add new constant “DB_PREFIX”Usage: DB_PREFIX=your_prefix_ ...
published on : 1 day ago 12 Comments

Class ‘DB’ not found in Lumen

Fixing Class 'DB' not foundBy defaults Facades are not enabled in Lumen, To use DB Facade functions un-comment $app->withFacades(); line from your bootstrap/app.php file. ...
published on : 11 hours ago 12 Comments

Paginating records in Laravel

Pagination in LaravelAccording to Wikipedia Pagination is a process of separating or dividing a document or digital contents into discrete pages. In CORE PHP and other frameworks, ...
published on : 3 days ago 12 Comments