Installing Laravelcollective/html package in laravel 5.4

In order to use form helpers in Laravel 5, you need to install Laravelcollective/html package. Laravel’s Laravelcollective/html package is HTML and Form Builders Package for the Laravel Framework. Below are step to install Laravelcollective/html package in Laravel 5.4. Step1 :- Install the package by running below composer command in your project directory. composer require laravelcollective/html […]

Read More

Laravel’s tap() helper

Laravel’s tap() is global helper function , that is used for improving the Laravel framework’s declarative capabilities.Tap() function is inspired from Ruby.Tap() simply takes $value and a $callback / anonymous function. The $callback will execute with the $value as the argument. And finally the $value will be returned.You can make changes in value in callback. […]

Read More

Generating controller with resources via artisan command

Generate controller with php artisan command To generate a plain controller in Laravel use below command on terminal artisan make controller –plain Generate controller with resources In order to generate a controller in Laravel with CRUD resource below artisan command is used php artisan make:controller PhotoController –resource Above code will generate a new controller in […]

Read More