How to get last inserted id in Laravel

How to get last inserted id in Laravel

In this post, I would like to show the different ways to get last inserted ID from the database table...

laravel - 2 years ago 1 minute read

Laravel 5.5 - How to log all Eloquent Queries

Laravel 5.5 - How to log all Eloquent Queries

In this post, I will show you simple method to log each and every Eloquent Query of your application executes....

laravel - 3 years ago 1 minute read

Laravel 5.5 - Custom Blade::if() Directives

Laravel 5.5 - Custom Blade::if() Directives

In Laravel 5.5, writing custom blade if Directives is pretty easy. Using this new feature, you can write simplified and...

laravel - 3 years ago 1 minute read

Laravel 5.5 - New Blade Directives , @auth and @guest

Laravel 5.5 - New Blade Directives , @auth and @guest

As part of Laravel 5.5 version release, Laravel introduced new blade directives called @auth and @guest.As the name implies both...

laravel - 3 years ago 1 minute read

Laravel 5.5 - DD and Dump in Collections

Laravel 5.5 - DD and Dump in Collections

Laravel offers two new useful debugging methods dump() and dd() as part of Laravel 5.5 version release. These methods are...

laravel - 3 years ago 1 minute read

Laravel 5.5 - Optional Objects

Laravel 5.5 - Optional Objects

Laravel 5.5 includes a new `Optional` class with a new helper() function, which you can think of as a generic...

laravel - 3 years ago 1 minute read

Laravel 5.5 - Dynamic templates with View::first

Laravel 5.5 - Dynamic templates with View::first

Laravel 5.5 is introduced a new feature called dynamic view loading and it makes your controllers simple and more expressive...

laravel - 3 years ago 1 minute read

Laravel - Generate PDF file from view

Laravel - Generate PDF file from view

We gonna use barryvdh/laravel-dompdf Laravel package to generate PDF files from view file. This package is just a wrapper around...

laravel - 3 years ago 1 minute read

Laravel 5.5 - The Route::redirect method

Laravel 5.5 - The Route::redirect method

Laravel 5.5 introduced new Router class method called redirect, which gives the flexibility to redirect to other URLs directly without...

laravel - 3 years ago 1 minute read

Laravel 5.5 - The Route::view method

Laravel 5.5 - The Route::view method

Laravel 5.5 introduced new Router class method called view, which gives the flexibility to render the view file directly without...

laravel - 3 years ago 1 minute read