laravel5.2

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 [...]

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')) { [...]

Delete record from database ORM laravel

Delete record from database ORM laravel Example User::destroy($user_id); User is Model name $user_id is id to delete particular user [...]