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 | | 844 Viewer | Category : Git

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 | | 4213 Viewer | Category : PHP MySql

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="">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 | | 33583 Viewer | Category : Laravel Highcharts

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 | | 2662 Viewer | Category : PHP

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 | | 917 Viewer | Category : PHP

Mysql Concat Upgrade Generate Backup Zoho mail Select HTML Top Admin Bootstrap Theme Image dompdf Form Jquery Element jQuery maatwebsite league/flysystem-dropbox bootstrap-growl Calculate Links Dropzone.js Migration Facebook API Each Cross Twitter OAuth helper Now setTimeout() Client side validation Elasticsearch Form Validation popupMultiSelect plugin inner join Eloquent-Sluggable Package Thumbnails Payment Gateway Version toastr js KCFinder Access encrypter colorpicker intervention/image toArray() Bootstrap Confirmation js plugin Check GET Ajax Parameters datatables Behance API away() Artisan Recursive is_null JS Loading XML Database Seeder Reset Example Blade inject Email Verification word-wrap Interfaces Index Interface DB::raw() Location length Field bootstrap tagsinput Origin Attribute Bootstrap maxlength plugin Gravatar Image setInterval() Authentication Pull Sendgrid REST Trans Helper select2.js throttle Git Jquery Plugin php.ini Sql croppie.js Captcha code Download Laravel 5.5 Executed User Undefined AngularJS Filter Strings Loop Update Datepicker FILTER_VALIDATE_URL Admin Panel glob Resize Image AngularJS ppa DATE_SUB Library Ip Address filter_var Master MySQL Subquery Message lowercase Connection XSS Where Not In Query Base URL SweetAlert Plugin Laravel 5.2 Bitbucket Select Query Configuration Column Old response() Notification Mediafıre API meta http-equiv tag Object filter Module CORS Clear Modal Class jquery.lazyload.js Redis Packages slice() Environment Log Activity Controluser array_map Subscription First Xampp Artisan Command Paypal Integration Force scrollTop