laravel5

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

Laravel Installation

Requirements PHP >= 5.5.9 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension Install Xampp First [...]