Month: July 2016

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

Git Setup Procedure

 Sign up here : https://bitbucket.org/ Verify you account Create user name Create Repository Set up your local directory Set up Git on your [...]

git command

 Git status git add git commit -m "msg" git [...]

Mysql Databse connection code

Mysql Databse connection code [...]

Mysql Databse connection code

Mysql Databse connection code mysql_connect("localhost","username","password"); [...]

Connect mysql DB from command line interface

 Open terminal Ctr+Alt+T Enter following command sudo mysql -u root(username of your db) -p Press Enter Now it will ask for password [...]

Password Hashing in Laravel

Password Hashing Use Hash; at top in your controller Now Write code in your method [...]

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

Install codeIgniter

Install codeIgniter Click here to read full [...]

Laravel Routing

All Laravel routes are defined in the app/Http/routes.php file, which is automatically loaded by the framework. The most basic Laravel routes simply accept a [...]

Laravel Installation

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