Latest Post

How to remove empty values from array in PHP?

you have array with empty value and you want to remove all empty value from that array without loop. you can remove your all empty value from array without loop. PHP array_filter function through you can remove all empty value, you can do both way try and see following example how to do this : <strong>Example:</strong> <pre class="language-php"> $example = array(100, "hari", "","hey", "", 77, "hello"); $result = array_filter($example, function($value) { return !empty($value); }); print_r($result); <br/> $resultDirect = array_filter($example); print_r($resultDirect); </pre> <strong>Out.....

By Hardik Savani | February 28, 2016 | | 4202 Viewer | Category : PHP
READ MORE

How to revoke 'git add' before 'git commit' ?

Sometimes you need to undo your git file before you git comment command. Because you made a some misteck or wrong code and you did git add using "git add ." command then you think how to undo your code before git commit command. But you can do that using git reset command, if you need to undo all file Or you may need to undo just one then you can do using git reset command, you can see bellow command. <strong>Example:</strong> <pre> // For Spesific file git reset <filename> // For all files git reset </pre>

By Hardik Savani | February 28, 2016 | | 653 Viewer | Category : Git
READ MORE

How to create laravel 5 widgets ?

In this post you can learn how to create your own widgets in laravel 5.2, First thing why we are create widgets, So we can use widget because when we can create re-usable code, for example you have manu items and comes from database like home, items, products, aboutus, contact us etc. you require to display in top header, in sidebar and in footer. But in top you have to just display home and aboutus, and in sidebar products and items same that way in footer. So, basically you have to display in three place in your site page. widgets through you can make one function or view and call just one w.....

By Hardik Savani | February 27, 2016 | | 3794 Viewer | Category : Laravel Pingpong
READ MORE

How to get ckeditor value with tags on ajax-submit ?

If you are use ckeditor for textarea and you need to fore ajax submit or form js submit, but you can't find ckeditor value in your controller or php file. So, first you have to update field using CKEDITOR.instances. so you can try to following code. <pre class="language-javascript"> for ( instance in CKEDITOR.instances ) CKEDITOR.instances[instance].updateElement(); </pre>

By Hardik Savani | February 26, 2016 | | 1201 Viewer | Category : PHP Javascript jQuery
READ MORE

How to get max attribute value in jquery?

Sometimes, you have a many tag with same class and attribute with value, but you need to find maximal value of attribute from that comman class, In bellow you have same html tag: <pre class="code language-html"> <ul> <li class="test" data-id="3">hi</li> <li class="test" data-id="5">hey</li> <li class="test" data-id="1">hello</li> </ul> </pre> Now, you require to get max value, i mean you need to 5, because that is big value from other, so you can get maximal value from this way: <pre class="language-javascript"> var max = 0; $('.test').each(fu.....

By Hardik Savani | February 23, 2016 | | 561 Viewer | Category : Javascript HTML jQuery
READ MORE


Zoho mail tree view Artisan length SEO Origin Jquery Dialog Box Highlight JS Ionic framework Global Variable 404 error page screenshotmachine.com API Check Key lowercase Controller Migration Character Permission Language Route Auth pngquant ajaxStart Ubuntu 500 error page MySQL Subquery pop() Scroll Mailchimp API file_exists() Download Windows Cache Upgrade nl2br Empty AngularJS Bitbucket Rewrite Carbon Jquery UI Add Base URL Clear Attribute toArray() Composer JSON Paypal Integration Authentication MSSQL Codeigniter Gravatar Image milon/barcode React JS str_replace Example Magento clipboard.js Cordova Select Query Nodejs public_path thomaswelton/laravel-gravatar croppie.js setInterval() IP Sort Mailgun API php_ini_loaded_file getQueryLog Remote Chart.js timestamps Sitemap Key Constraint gulp KCFinder away() DB::raw() Flash Message Column Bootstrap Plugin Validation Dropzone.js Image throttle filter_var groupBy() Laravel 4 Image Upload Ckeditor Laravel Eloquent Trigger Configuration Object Apache Recursive Mysql Concat Datepicker Join PHP artisan Facade Listener CSS SMTP Element typed.js plugin Site Confirm Box JS Input Admin Panel Captcha code Schema Connection Manual Socket.io Export Sql Terminal Laravel COUNT() Reset Algolia Package Pagination Dialog box INTERVAL refs ngclipboard.js Demo Botdetect Captcha Delete Dropbox API ajaxComplete Bootstrap Notify Plugin Ajax First File Upload mac Class Page stevebauman/location composer package Generate Location REST tagsinput.js Hard ServiceProvider