Latest Post

How to fix and recover a “corrupt history file” in zsh?

Many user use ubuntu OS and many user face one of the common problem several time like “corrupt history file in zsh" most of time face this problem when reboot your OS so, How to fix this problem please follow this command and fix that. <pre class="language-mysql"> mv .zsh_history .zsh_history_bad strings .zsh_history_bad > .zsh_history fc -R .zsh_history </pre>

By Hardik Savani | January 31, 2016 | | 1607 Viewer | Category : Ubuntu

How to check empty or null in Mysql Query?

If you want to check empty or null value with conditional statement like case when and if in table row with Mysql database. you like to check empty or null value form table then you have multiple way check that. first we check empty value with case when statement then following example. <strong>Empty Check:</strong> <pre class="language-mysql"> SELECT (CASE WHEN COALESCE(email,'')!='' THEN email ELSE '' END) as test FROM `customers` ---------------------OR---------------------- SELECT (CASE COALESCE(email,'') WHEN '' THEN '' ELSE email END) as test FR.....

By Hardik Savani | January 31, 2016 | | 1080 Viewer | Category : PHP MySql

How to copy one table data into another table using Mysql Query?

If you are working on php or any php framwork and you want to copy one table into other table by using sql query, so you could do it using simple SELECT and INSERT statement. just you need to think how you can use. In Following example you can see how to fetch data from "post" table and how to insert into "post_copy" table, so basically you have to select field of one that you want to copy and second one give name of table with proper field that you want insert. But don't forgot to give a name of field otherwise it generate error. <pre class="language-mysql"> INSERT INTO `post_copy` (name,sl.....

By Hardik Savani | January 30, 2016 | | 2609 Viewer | Category : PHP MySql

How to add text on image in laravel 5?

if you are use laravel and you want to add text on image or resize, crop image then we can do with "intervention/image" pakacke. you have to just follow few step and you can add text on image. <strong>Step 1 : </strong>you have to add package on your laravel project by using composer like : <pre>composer require intervention/image</pre> <strong>Step 2 :</strong> then you have to add provider path and alias path in config/app.php file like : In $provides : <pre>'Intervention\Image\ImageServiceProvider'</pre> In $aliases : <pre>'Image' => 'Intervention\Image\Facades\Image'</pre> [ADDCODE].....

By Hardik Savani | January 30, 2016 | | 11118 Viewer | Category : Laravel

How to get days difference between two dates in laravel?

Whenever you need to get difference between two dates in date in laravel 5 then you can get easily using Carbon. Laravel by default provide Carbon class. Carbon class throught you can calculate difference between two dates in days. In Following example you can see, we have a two dates, first $to variable and second one $from variable. Carbon class diffInDays function using you can get difference between two dates. I hope you will find your solution. <strong>Example:</strong> <pre class="language-php"> $to = \Carbon\Carbon::createFromFormat('Y-m-d H:s:i', '2015-5-5 3:30:34'); $from = \Carbon\.....

By Hardik Savani | January 29, 2016 | | 7853 Viewer | Category : Laravel

User Agent phpmyadmin Object Package Add yajra/laravel-datatables-oracle CURL Image Gallery Socialite toastr js Limit Node JS Generate Form Validation Contact US Form Repository Pattern Sql Attribute Middleware Ckeditor thomaswelton/laravel-gravatar Twitter OAuth Hard guzzle http client validator.js Terminal Empty Modular timestamps Subscription Function public_path Array Demo Laravel 4 Composer json() Object to Array file_exists Special Laravel Draggable Gmail CASE_LOWER Inserted Id is_null Control datatables Sub-Domain mCustomScrollbar Plugin Laravel Builder jQuery intervention/image array_map Barcode Eloquent-Sluggable Package Capitalize sven/artisan-view package Image Sort Bootstrap Plugin Instagram API Admin Panel ngclipboard.js croppie.js MySQL Subquery FILTER_VALIDATE_URL Message Loading Parameters Sublime text 2 ACL Recursive 404 error page Site PHP Animate Issue Client side validation helper Reset Codeigniter Lavacharts Javascript Update mysqld.sock Solve Remote Configuration Append php.ini Magento 2 ppa Run Project Authentication Database Seeder ajaxStart Interface PHP artisan Billing softDeletes Blade inject ServiceProvider strtolower DATE_SUB marker Migration CloudConvert API HTML Paytm Controller Grayscale Image clearInterval() voyager package Element Highchart SEO X-editable Plugin toSql Bootstrap Notify Plugin AngularJS Directive Popup Box strpos RAND() Current Page Master XML Typeahead JS parse CORS preg_match Server Chosen JS Script inner join Google API Elasticsearch Laravel 5.3 500 error page setInterval() Windows bootstrap-growl Data Percentage clearbit API Bootstrap-lightbox Plugin Email Verification Link Environment