Latest Post

How to create middleware for XSS protection in laravel 5?

XSS(Cross Site Scripting) protection must need in your site because if you do not XSS protection then your site is not secure. XSS filter through you can remove html tag from your input value and it is very important to remove html tag for security. in your laravel 5.2 application you can implement by using middleware concept in your project. so how to create XSS filter middleware in your laravel application by using following step. First fire following command and create middleware: <strong class="step">Create Middleware</strong> <pre>php artisan make:middleware XSS</pre> Now, you can see new.....

By Hardik Savani | March 4, 2016 | | 4580 Viewer | Category : PHP Laravel
READ MORE

How to generate random alphanumeric string in PHP?

In this example i am going to show you how to generate randomly alphanumeric string OR number in PHP. when you need you generate random alphanumeric string for your unique field then you can easily create using substr(), md5(), rand(), uniqid(), mt_rand(), time() and str_shuffle() php function you can create several way unique code using following example: <strong>Example</strong> <pre class="language-php"> Example 1 $generated = substr(md5(rand()),0,5); print_r($generated);<br/> Example 2 $generated = rand(10000,99999); print_r($generated);<br/> Example 3 $generated = substr(md5(uniqid(rand(.....

By Hardik Savani | March 4, 2016 | | 1577 Viewer | Category : PHP
READ MORE

How to use each loop with class element of html in Jquery?

Whenever you need to use each loop in jquery then you can follow this example code. each with html class you can get whole object of that class using $(this) jquery function. In following example you can see i get attribute data-id using $(this).data('id'), that means you can take current class data attribute value. <strong>Example:</strong> <pre class="code language-html"> <html lang="en"> <head> <title>Each Loop with Class Jquery</title> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> </head> <body> .....

By Hardik Savani | March 4, 2016 | | 726 Viewer | Category : Javascript HTML jQuery
READ MORE

How to import CSV file using mysql

In this post we have learn how to import CSV file using LOAD DATA INFILE statement. this is a very simple example for a import file to the database. Here we have provide a full sysntax for LOAD DATA INFILE statement. <strong>Sysntax</strong> <pre class="language-mysql"> LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name' [REPLACE | IGNORE] INTO TABLE tbl_name [CHARACTER SET charset_name] [{FIELDS | COLUMNS} [TERMINATED BY 'string'] [[OPTIONALLY] ENCLOSED BY 'char'] [ESCAPED BY 'char'] ] [LINES [STARTING BY 'string'] .....

By Hardik Savani | March 3, 2016 | | 2274 Viewer | Category : MySql
READ MORE

Laravel 5 create Custom Validation Rule example.

Custom Validation Rule is very usefull and interesting concept of laravel 5 because custom validation throught we can re-use validation and use it easily by just name as like laravel core validation(required,same,in etc.). So, In this post i am going to show you how to create custom validation rules in laravel 5.2. you can create very simple way and use too. you can create custom validation rules by few following step and you can see preview of example that give for add custom validation rule. In this example you are creating <strong class="path">is_odd_string</strong> custom validation rule. .....

By Hardik Savani | March 3, 2016 | | 29028 Viewer | Category : PHP Laravel
READ MORE


Sublime text 3 Convert Multiple Laravel Null Website Client side validation google recaptcha code Pixel FIND_IN_SET() REST ajaxComplete refspec Opencart Bootstrap show password Plugin gmaps.js DATEDIFF() Backup Paging Notification POST Ajax Facebook API strtolower Language Control CRUD chmod API whitespace PayPal MySQL Subquery Image Gallery Contact US Form Inserted Id Each Allow Dropzone.js AngularJS Filter Twitter OAuth View Subscribe csv jquery.email-autocomplete.min.js Loading laravel-elixir Function Thumbnails thujohn/twitter package Laravel Builder encrypter Foreach Remote Folder Search Chart Field Highchart Schema Zip PHPUnit Draggable Laravel 5.4 - Markdown Mailables Mediafıre API Blocked nl2br getQueryLog gulp Variable CURL Mailchimp API setInterval() Current Laravel Passport Record Codeigniter Mail Dynamic Dependant Dropdown AngularJS Directive Ionic framework clearInterval() Tracking Parsley Ubuntu hasTable Laravel 5.3 toSql Billing enableQueryLog Where In Query is_null Cross unicodeveloper/laravel-password Algolia Package Technology Git sven/artisan-view package Date Format Prompt modal mysqld.sock validator.js typed.js plugin Custom date_format() Paytm String Redirect Snippet throttle Node JS Sub-Domain Repository Pattern intervention/image DATE_SUB Auth Branch Controller Solve Location Ubuntu 14.04 Trigger Google API tree view Barcode Collapse Progress Bar chumper/zipper Scout Package Select Query Bootstrap Tokenfield Plugin Repo Export toArray() Accordion Object to Array file_exists() CloudConvert API Environment thomaswelton/laravel-gravatar Form Validation Namespace Autocomplete Custom Command CSS Configuration Laravel 4 Behance API WHERE Query Tooltip csrf_token Message