Laravel Tricks

Browse latest tricks and tips on Laravel.

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 : 1 hour 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 : 2 hours 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 : 1 hour 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 : 49 seconds 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 : 34 minutes ago 12 Comments