Laravel Custom validation example?

$messages = [ 'builder_code.required' => 'Please enter builder code!', 'builder_code.exists' => 'Please enter valid builder code!', 'plan.required' [...]

Whats new in laravel version 5.6 ?

Single Server Task Scheduling If you have a task scheduler running on multiple servers, the task will run on each server. You can indicate that a task should [...]

Setup Multiple Database Connection in Laravel ?

Example : Step1: Add following code in database.php (path : config/database.php) 'mysql_2' => [ 'driver' => 'mysql', 'host' => env('DB_HOST_2', [...]


Solution : $messages = [‘password.regex’ => “Your password must contain 1 lower case character 1 upper case character one number”]; [...]

How to integrate multi langauge in laravel5.2 ?

Step by step solution : Step1 : Add Laravel Localization to your composer.json file “mcamara/laravel-localization”: “1.1.*” Step2 : Run composer [...]

How to Remove public from URL and remove index.php from URL in laravel ? Step by step solution.

Solution : Step1 : open public folder and copy index.php step2 : Paste index.php to root of your laravel folder (suppose your laravel folder name is [...]

How to create or use multi Auth in laravel 5.2

Solution : Step1: Now open config/auth.php and make the following changes. Step2 : 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => [...]

How to convert html to PDF in laravel ?

Solution : Step1 :  add following to your composer.json file "barryvdh/laravel-dompdf": "0.6.*", step2: update your composer using command. composer [...]

Sort multi dimension array in php

solution [...]

Export Excel file in laravel

1. Put this export button code in the view Export 2. Put this code in the [...]

How to validate files,image and mime type in laravel

$validator = Validator::make($request->all(), [ 'Picture' => 'required|image|mimes:jpeg,bmp,png,gif,PNG,jpg', // Picture is name of file you set in [...]

How to upload file in Laravel

Here is example for upload file in larave : public function user() { $user = new User; $form_input = Input::all(); if (Input::hasFile('Picture')) { [...]

How to Increase the Maximum File Upload Size in PHP

Use following code on your php file. @ini_set( 'upload_max_size' , '64M' ); 2 @ini_set( 'post_max_size', [...]

How do I increase the PHP upload limits

Try increasing the following values in php.ini, for example: memory_limit = 32M upload_max_filesize = 24M post_max_size = 32M After making these changes, [...]