Latest Post


How to git force pull from remote branch ?

When i was working on my Laravel application using git bitbucket repository, i fatch problem when first i did commit on my master branch and i think i did 3 or 4 commits, and my project partner pull also in his local system ,but we did wrong code in this commit so we required to remove that 3 or 4 commit from my bitbucket repository. he did remove that commits from his system but when i did pull but nothing to change, i also remove cache but same. But At last i though i thing i have to hard pull that's why i fired following command. if you also fatch problem like this then let's see this comm.....

By Hardik Savani | March 18, 2016 | | 1040 Viewer | Category : Git
READ MORE

Git remove last commit from local

Git is distributed version control system that is a awesome. when ever you are working with git repository. if you did commit your code in your local system by mistake, then if you want to remove last commit from your project. so let's see following example: <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> git add . git commit -m "change for test" git reset --soft HEAD~ </pre>

By Hardik Savani | March 18, 2016 | | 980 Viewer | Category : Git
READ MORE

How to get current month data in MySql PHP ?

If you require to get all the records of current month using mysql query. for example you have one table "items" and columns are id, title, description, created_at and update_at, Now you want to get all records of this month. so you can fetch fields value using DATE_SUB and INTERVAL of mysql. In following example you can see how to select data of current month. <strong class="example">Example:</strong> <pre class="language-mysql">SELECT * FROM items WHERE created_at > DATE_SUB(NOW(), INTERVAL 1 MONTH);</pre>

By Hardik Savani | March 17, 2016 | | 4718 Viewer | Category : PHP MySql
READ MORE

How to add charts in Laravel 5 using Highcharts ?

Laravel 5's Blade template engine is awesome. you can easyly use PHP variable, js and js library in laravel view. i will create chart using Highcharts in my laravel application. Highcharts is a js library, this library through we can use bar chart, line chart, area chart, column chart etc, Highcharts also provide sevral theme and graph that way you can use more chart from here : <a target="_blank" href="http://www.highcharts.com/">HighCharts Site</a>. whenever you need to add charts in laravel server side. then you can easily use following example you have to fetch data from database and then.....

By Hardik Savani | March 16, 2016 | | 39660 Viewer | Category : Laravel Highcharts
READ MORE

How to count number of files in directory PHP?

If you are working on code php and you require to count number of files, images, zip file, rar files, etc in the given folder path, then you can count using glob() and count() of php. So, let's see this bellow example and learn how it done. <strong class="example"></strong> <pre class="prettyprint lang-php"> $folderPath = "upload/"; $countFile = 0; $totalFiles = glob($folderPath . "*"); if ($totalFiles){ $countFile = count($totalFiles); } print_r($countFile); </pre>

By Hardik Savani | March 14, 2016 | | 3141 Viewer | Category : PHP
READ MORE


summernote Controller Zoho mail Package response() hasColumn Phonegap Draggable Month Notification croppie.js Query Builder Xampp Empty Google Chart php.ini Instagram API select box search Jquery Plugin Message GuzzleHttp Clear Socialite Laravel Passport dompdf Composer IP bplist-parser jquery.email-autocomplete.min.js Base URL Local Key glob Interfaces Configuration clearInterval() Force Backup URL split Bootbox.js Generate DB::raw() Highlight JS Subscription Stripe toastr js Laravel 5 Carbon Pixel Bootstrap-lightbox Plugin Scroll Parsleyjs Blade inject inner join lowercase setInterval() Location PHP DATE_SUB Ionic Config Where Not In Query Admin Bootstrap Theme Linux Paytm Snippet Loop Count JSON away() colorpicker Excel oauth Run Project Frontside Validation Billing ACL Route Admin Panel ServiceProvider setTimeout() Dynamic Dependant Dropdown Origin CORS Determine Grayscale Image Mysql Concat Where In Query throttle Variable strpos WHERE Query Field screenshotmachine.com API File Recursive Namespace Laravel Builder Remove file_exists Delete Solve Library Issue Chart Chat CASE_LOWER View Jquery Dialog Box toSql Link Mail Key Constraint Add Now Dropzone.js Value Import Bootstrap Notify Plugin Payment Gateway DB Statement Gravatar Image Particular Terminal Javascript Site Failed parse Check Sql jQuery Foreach Enable Laravel Eloquent Laravel 5.5 MVC Dropbox API Null Captcha code phpmyadmin Autocomplete Log Activity word-wrap laravel-elixir Download Email Verification Sub-Domain Multi Auth Animation