Latest Post

How to use DB transactions in laravel 5?

First, Let's undestand why we are use transactions in laravel project. But db transactions is very important concept and very usefull because it securely manage. laravel 5 also provide to transactions commit, rollback etc functions. How to use transactions in my project, so I an going to give you one example, I have a three table "items", "items_city" and "items_count" and i need to add new row same time and "items" table is a main table then "items_city" and "items_count" is a child table of "items" table. so bassically why we nee to use transactions because if when i was add new records in d.....

By Hardik Savani | March 6, 2016 | | 2960 Viewer | Category : PHP Laravel

Angular $scope.form value undefined on submit in ionic framework.

When i was working first time in ionic framework with search module. i fetch one issue i can't get ng-model value in angular js controller on submit form. i was try like $scope.form because if you work on angular JS before then you can get all post data using $scope.form directly, But i try with bellow form and try to get that way but i always find undefined value on form, But at last i found how to solve this issue. you can see bellow example and find your solution. <strong>Form</strong> <pre class="prettyprint lang-html"> <form method="POST" name="searchForm" ng-submit="search()"> &l.....

By Hardik Savani | March 5, 2016 | | 3799 Viewer | Category : jQuery AngularJS Ionic Framework

PHP Image upload without refreshing page using jquery example

In this post i show you how to image upload without page reload using jquery ajax. jquery ajax through you can upload image and store record into database in php. i use jquery.form plugin for image uploading. So you can do by following few step of file uploading ajax jquery. <strong>Preivew</strong> <img width="100%" style="border:2px solid red" src="/upload/imageupload.png"> <br/> First you have to create index.php file as i do in following file, so create index.php file and put bellow code. <strong>index.php</strong> <pre class="code language-html"> <html lang="en"> <head> <ti.....

By Hardik Savani | March 4, 2016 | | 11427 Viewer | Category : PHP Javascript jQuery

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 | | 5191 Viewer | Category : PHP Laravel

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 | | 1640 Viewer | Category : PHP

Terminal Controller PHP artisan Path hasColumn Link Parsley Scout Package Botdetect Captcha Email public_path ajaxComplete Download Folder csv intervention/image Login With FB Numeric Rewrite Facade sven/artisan-view package virtual host csrf_token Undefined Image Modular Artisan AngularJS TrustAsHTML Filter Timepicker Migration Automatically Laravel Cashier Admin Panel WHERE Query Join Example Authentication Last meta http-equiv tag Animation Packages Now Sub-Domain croppie.js Flash Message unicodeveloper/laravel-password array_map getQueryLog Cross Protection DATE_SUB pop() ACL Express bootstrap-progressbar.js enableQueryLog Jquery Dialog Box Mailchimp API Attr Laravel 5.2 Repo Contact US Form Tracking Select Bootstrap show password Plugin FIND_IN_SET() Resize Image toSql json() Trigger Sitemap Remote split Site Empty Laravel 5.3 Ubuntu 14.04 DB Library Progress Bar Laravel 5.4 - Markdown Mailables Top Zip Jquery Modal Custom Command Strings Chosen JS Bootstrap Plugin Trans Helper Update away() Percentage Backup Sort Tooltip xoxco tags input Each Zoho mail Facebook API inner join Form Jquery Allow voyager package Request Method Namespace Multiple Class Sublime Tutorial Javascript MSSQL Object Xampp Configuration Pull Connection stevebauman/location composer package Remove popupMultiSelect plugin Paytm Message Excel roumen/feed package CURL clearInterval() Jquery UI Language clipboard.js POST Ajax bootstrap-multiselect plugin Animate Interfaces MassAssignmentException XSS mod_rewrite Record SweetAlert Plugin Chat daterangepicker Directory colorpicker Controluser Prompt modal File Upload Laravel Passport Run Project Column Enable Input