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 - 2 years ago

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 - 2 years ago

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 - 2 years ago

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 - 2 years ago

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 - 2 years ago

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 - 2 years ago

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 - 2 years ago

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 - 2 years ago

How to change created_at and updated_at column names in Laravel

How to change created_at and updated_at column names in Laravel

You can easily change created_at and updated_at column names by overriding CREATED_AT and UPDATED_AT constants in your Eloquent model. Example...

Laravel - 2 years ago

How to force download files in Laravel?

How to force download files in Laravel?

Giving download option to the user is a pretty common requirement in today's web apps for the variety of reasons....

Laravel - 2 years ago