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 | | 2321 Viewer | Category : PHP Laravel
READ MORE

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 | | 3095 Viewer | Category : jQuery AngularJS Ionic Framework
READ MORE

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 | | 7831 Viewer | Category : PHP Javascript jQuery
READ MORE

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 | | 3905 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 | | 1470 Viewer | Category : PHP
READ MORE


Array Limit slice() Datetimepicker User Agent virtual host throttle Value Config Algolia Package Blade inject Amazon S3 Count Null DATE_SUB Bootstrap Plugin clearInterval() Page XSS strtolower yajra/laravel-datatables-oracle jQuery marker New Features Login With FB no-captcha Input Animate Elasticsearch Highlight JS Base URL characters basename() Commit Failed Now Components & Slots Delete daterangepicker Localization ServiceProvider Gmail Element bootstrap-multiselect plugin CURL Class Thumbnails PHPExcel pngquant Manual datatables laravel-elixir Issue Specific gmaps.js Linkedin API Socialite Artisan Jquery Dialog Box Admin Bootstrap Theme Object to Array toastr js gulp Query Composer Paging PHPUnit Redirect Parameters Laravel Eloquent Key Constraint Access Protection PHP artisan execute query Parsleyjs google recaptcha code csrf_token Object PayPal setInterval() Gravatar Image AngularJS Filter json() Foreign Key RSS Strip Tags AngularJS TrustAsHTML Filter hasTable Sub-Domain Laravel 5.3 select box search array_change_key_case Timepicker Route Subscription Paypal Integration Custom uppercase Configuration Special stevebauman/location composer package lowercase Windows KCFinder getQueryLog Dropbox API Run Project Key Barcode Schema timestamps Server node.js Parsley Allow Div Capitalize Prompt modal Calculate Trigger JSON sven/artisan-view package Service Provider Sublime Force Example Environment jquery.email-autocomplete.min.js Request Method Phonegap Record Sendgrid encrypter Laravel 4 API Zip Jquery Plugin pop() Laravel Builder Laravel SUM() 500 error page Node JS hasColumn tagsinput.js Links Language Ubuntu Autocomplete