Latest Post

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 | | 4378 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 | | 36843 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 | | 2910 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 | | 987 Viewer | Category : PHP

How to create Event for Mail sending in Laravel 5.2?

Events provides a simple observer implementation, allowing you to subscribe and listen for events in your application. In this posts you can learn how to create event for email send in your laravel 5.2 application. event is very help to create proper progmamming way. First create event using bellow command. <pre class="prettyprint lang-php">php artisan make:event SendMail</pre> Ok, now you can see file in this path <strong class="path">app/Events/SendMail.php</strong> and put bellow code in that file. <strong>app/Events/SendMail.php</strong> <pre class="prettyprint lang-php"> namespace App\Ev.....

By Hardik Savani | March 13, 2016 | | 41041 Viewer | Category : PHP Laravel

Modular PHP artisan Laravel Factory First Timepicker Redirect Rewrite Particular Package Segment Image Gallery Global Variable ajaxComplete Download Clear ixudra/curl composer package Gmail upload_max_filesize Interfaces Request socket whitespace Current Page Determine Sublime text 3 Phonegap ID LIKE Query Key Example Blocked Algolia Package json() Element typed.js plugin Codeigniter 3 Environment Config Laravel 5.4 - Markdown Mailables Force Tag Manager plugin stevebauman/location composer package Cache Artisan Command sven/artisan-view package API Key Constraint Query Builder Schema Import laravel-elixir CORS Datepicker Database uppercase File Upload Loop Command GET Ajax PayPal Percentage AngularJS Filter Cordova apache2 ServiceProvider softDeletes Each Class Service Provider unicodeveloper/laravel-password Specific basename() Foreach Master length Resize Image xoxco tags input Dropbox API Parsley Last mod_rewrite Lightbox PostgreSQL Jquery Modal Vue.JS Bootstrap Notify Plugin Number Subscribe Validation getQueryLog Sublime text 2 array_map Local Export Typeahead JS After Top Toggle CSS Location Frontside Validation gravatar scrollTop Commit Eloquent-Sluggable Package roumen/sitemap Cross Highchart hasColumn PHPExcel Ionic Chosen JS Image Upload Field Script Jquery Plugin Object to Array Server Column parse array_change_key_case Sql Origin Paypal Payment Gateway Run Project MySQL Subquery Parsleyjs orderBy KCFinder roumen/feed package Input FadeOut Date Format read more Parameters Bitbucket Billing mysqld.sock bootstrap-progressbar.js Namespace Bootstrap Plugin URL Automatically Blade inject ngclipboard.js Opencart CASE_LOWER Linkedin API Plugins