How to Upload, download, remove Files to Amazon S3 Using Laravel

How to Upload, download, remove Files to Amazon S3 Using Laravel

Create a controller called UploadController.php with following code. <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; class UploadController extends Controller {...

Laravel - 1 year ago

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

Laravel Create Controller, Model and migration in one Artisan Command

Laravel Create Controller, Model and migration in one Artisan Command

Artisan is the command-line interface included with Laravel. It provides a number of helpful commands that can assist you while...

Laravel - 3 years ago

How to record last login time and IP address of a user In Laravel

How to record last login time and IP address of a user In Laravel

Recording last login information is useful and you can easily save and update the last login time and IP address...

Laravel - 3 years ago

Multiple Route files in Laravel 5

Multiple Route files in Laravel 5

For small-scale applications single route file is sufficient but large-scale applications its cumbersome to maintain and organize the routes. The...

Laravel - 4 years ago

Laravel 5 - SHA1 encryption instead of BCrypt

Laravel 5 - SHA1 encryption instead of BCrypt

Recently I have migrated core PHP application to the Laravel5 framework. The old application used SHA1 encryption so I have...

Laravel - 4 years ago

Laravel 5 - Prevent Browser back button after Logout

Laravel 5 - Prevent Browser back button after Logout

In this post, I would like to share a simple Laravel5 Middleware which prevents going back to the previous protected...

Laravel - 4 years ago

How to add custom class in Laravel 5

How to add custom class in Laravel 5

In this tutorial, I will show you how to add a custom PHP class in Laravel 5.x application. For example,...

Laravel - 4 years ago

Laravel 5 get current authenticated user?

Laravel 5 get current authenticated user?

Upon successful login you can get current user details by called Auth::user() method. It will return null if no user...

Laravel - 4 years ago

How to redirect requests to HTTPS in Laravel 5

How to redirect requests to HTTPS in Laravel 5

I know we can achieve same with other methods but I am going do it with the Laravel's Middleware. So...

Laravel - 4 years ago