How-to articles, tricks, and solutions about LARAVEL-5.1

Create a Laravel Request object on the fly

In Laravel, you can create a Request object on the fly by using the create method of the Request facade.

How to delete multiple records using Laravel Eloquent

You can use the destroy() method in Laravel Eloquent to delete multiple records.

How to select year and month from the created_at attributes of database table in laravel 5.1?

In Laravel 5.1, you can use the selectRaw method to select the year and month from the created_at attribute of a database table.

Laravel 5 Application Key

In Laravel, the application key is a unique, random string that is used to encrypt user sessions and other sensitive data.

Laravel get name of file

In Laravel, you can use the getClientOriginalName() method to retrieve the original file name of an uploaded file.