Laravel Tricks

Browse latest tricks and tips on Laravel.

Installing Laravelcollective/html package in laravel 5.5

Laravelcollective/Html PackageIn order to use form helpers in Laravel 5, you need to install Laravelcollective/html package. Laravel's Laravelcollective/html package is HTML and Fo ...
published on : 1 hour ago 12 Comments

Sending data to view using redirect in Laravel?

You can send data to view using redirects in Laravel by using below code$data=['id'=>1,'name'=>'test']; return Redirect::route('Controller.method')->with('data' => $d ...
published on : 9 minutes ago 12 Comments

How to get user details by id or email in Laravel?

Get user by email in Laravel 5Laravel function to get user details by email or id in Laravelpublic function getUserByEmail(Request $request){ $email =$request->input('email ...
published on : 1 hour ago 12 Comments

Generating application key in Lumen

Lumen generate keyTo generate application key in Lumen, please add your routes/web.php and point your domain to /key and copy the output string and paste it in your .env file$app-& ...
published on : 22 minutes ago 12 Comments

Installing soap module on PHP 7 ubuntu

Below are steps to install Soap module in PHP 7, 7.2, 7.3 on Ubuntu.Command to check Soap is installed or not. apt-cache search php | grep -i soap If not first install it by runni ...
published on : 53 minutes ago 12 Comments

What is reverse routing in Laravel?

Reverse Routing in LaravelIn Laravel reverse routing is generating URL's based on route declarations.Reverse routing makes your application so much more flexible.For example, the b ...
published on : 2 hours ago 12 Comments