Latest Post

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 | | 730 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 | | 3714 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 | | 27916 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 | | 2247 Viewer | Category : PHP
READ MORE

How to remove specific value from php array?

When i was working on my code PHP project, at that time i need to remove specific items value from my array. i did google search and solve that but i would like to share in my site how to remove value from array. so, let's see how to use: <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> $myArray = array('php', 'laravel', '.net', 'java', 'c#', 'javascript'); $myArray = array_diff($myArray, array('laravel')); print_r($myArray); </pre>

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


Now DATEDIFF() Limit GuzzleHttp max_file_uploads ngclipboard.js Bootstrap Tokenfield Plugin clearbit API Command Laravel Timepicker Setup CORS Plugins Specific Determine CSS File Artisan gulp Top QR Code React JS thomaswelton/laravel-gravatar Database Calculate gravatar CURL Apache chumper/zipper is_null AngularJS Directive softDeletes Middleware DB Statement glob Controluser Reset Admin Panel Migration gmaps.js Index Linux Repo FIND_IN_SET() file_exists setInterval() Autocomplete Failed tagsinput.js split Request datatables nl2br throttle SUM() ajaxStart Search Typeahead JS GET Ajax Ionic framework Trigger Admin Bootstrap Theme Interfaces array_combine read more Ajax Request Fullcalendar JS str_replace Highchart Version Global Variable Packages LIKE Query Auth Listener roumen/feed package Grayscale Image Chosen JS Backup PHP Clear Rewrite public_path Parameters Environment XML Google API upload_max_filesize Laravel Eloquent execute query Script Login With FB Mailchimp API chmod Sendgrid Scout Package SUBSTRING_INDEX() Server Codeigniter 3 Base URL Percentage Bootbox.js Dropzone.js User Agent Progress Bar PHPUnit filter php.ini Div Namespace Captcha code Run Project Artisan Command Website Laravel 5.4 hasTable Numeric Data Config Schema Installation Special mCustomScrollbar Plugin Resize Image Redis Datepicker Magento 2 Download Components & Slots Google Chart RAND() JSON word-wrap Control Dropbox API Frontside Validation clipboard.js Barcode bplist-parser ID refspec Null php artisan serve toArray() Draggable Sublime AngularJS Jquery UI Email