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 | | 2007 Viewer | Category : Ubuntu
READ MORE

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 'example@gmail.com' END) as test FROM `customers` ---------------------OR---------------------- SELECT (CASE COALESCE(email,'') WHEN '' THEN 'example@gmail.com' ELSE email END) as test FR.....

By Hardik Savani | January 31, 2016 | | 1309 Viewer | Category : PHP MySql
READ MORE

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 | | 3285 Viewer | Category : PHP MySql
READ MORE

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

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


Letter View Application AngularJS TrustAsHTML Filter Convert Middleware strtolower Branch Ip Address Bootstrap Confirmation js plugin array_map Image Upload KCFinder Draggable webpatser/laravel-uuid PostgreSQL bootstrap-multiselect plugin screenshotmachine.com API Nodejs Enable Global Variable Where In Query Twitter Bootstrap Module Sublime text 3 URL Now bplist-parser Folder Bitbucket Key Constraint Sortable Config execute query Redirect Jquery UI throttle Parsleyjs split Failed Authentication SEO Send Record ppa Frontside Validation HTML Setup hasColumn Attr Paging Script AngularJS Filter Directory Add More JQuery Laravel 5.2 tagsinput.js Request Billing Month Google OAuth Pull IP Resize Image str_random() CSS jquery.email-autocomplete.min.js MVC phpmyadmin Where Not In Query ajaxComplete Special PHP artisan Mail Laravel 5.4 - Markdown Mailables Number Facebook API helper RSS Old Popup Box Carbon Email Verification Phonegap Last Subscribe Scratch Numeric meta http-equiv tag AngularJS Artisan Technology Typeahead JS Hard Solve Highlight JS Socket.io softDeletes Chart.js filter Count Zip Exists Laravel Factory maatwebsite Components & Slots ZipArchive str_replace Database Codeigniter CORS Link Cordova clearbit API dompdf phpword Percentage Each Base URL Gmail Highchart Google API Character Elasticsearch gulp Undefined Route Admin Panel clipboard.js RAND() Origin uppercase Animate Chosen JS Field Inserted Id Segment Key CRUD PingPong Backup Laravel 5.4 ixudra/curl composer package Repository Pattern bootstrap-progressbar.js Delete Ajax JSON roumen/sitemap Demo