Latest Post

Laravel 5.2 and AngularJS CRUD with Search and Pagination Example.

Now i show you how to create CRUD(Create, Read, Update, Delete) using AngularJS and Laravel 5. In Following step by step you can create web application of create, edit, delete, lists, search with pagination of items modules. In this post through you can make simple crud, search and pagination module and easily use in your laravel project. I am going to show preview of items module that we will do using angularJS and Laravel 5.2. <strong>Preview</strong> <img src="/upload/laravel-angular.png" width="100%" style="border:2px solid cadetblue" /> <strong class="step">Step 1: Create items table an.....

By Hardik Savani | February 15, 2016 | | 149006 Viewer | Category : PHP Laravel AngularJS

How to get hours difference between two dates in laravel?

Whenever you need to get difference between two dates in hours 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 hours. In Following example you can see, we have a two dates, first $to variable and second one $from variable. Carbon class diffInhours 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 = \Carb.....

By Hardik Savani | February 13, 2016 | | 4566 Viewer | Category : Laravel

How to add prefix in each key of PHP Array?

Whenever you require to add one character or more to each and every key of array then most of the people would like prefer add key using for loop or foreach loop. But we can do this without using any kind of loop. using array_combine(), array_keys() and array_map() through we can add prefix on each key of array, In Bellow example you can see how to use both function together and add faster way to add prefix of every item key: <strong>Example:</strong> <pre class="language-php"> $myArray = ['0'=>'Hi','1'=>'Hello','2'=>'Hey']; $myNewArray = array_combine( array_map(function($key){ return 'a.....

By Hardik Savani | February 13, 2016 | | 4673 Viewer | Category : PHP

How to get minimum key value of array in PHP?

Sometimes, you need to get minimum key value of your array but you try to get with loop and any function etc, but in bellow example you can see we can get smallest key value from our php array by using min() and array_keys(). So, let's try to use in your code this way: <strong>Example:</strong> <pre class="language-php"> $myArray = ['2'=>'Hey','4'=>'Hello','1'=>'Hi','3'=>'GH']; $new_key = min(array_keys($myArray)); $new_val = $myArray[$new_key]; print_r($new_val); </pre>

By Hardik Savani | February 12, 2016 | | 792 Viewer | Category : PHP

How to store all record in laravel5 Cache

if you are work with large application which depend on large query and required large number of record at that time your application performence littel bit down. that problem overcome with laravel Cache functionality. Laravel Cache provide to you store your large query in cache so your application performence improve. first of all you must write <stong>"use Cache"</strong> keyword on top of the your class Here is an example using Laravel’s Fluent Query Builder: <pre class="language-php"> $users = DB::table('order') ->orderBy('price', 'desc') ->take(10) ->.....

By Hardik Savani | February 11, 2016 | | 2196 Viewer | Category : Laravel

toastr js Bootstrap Plugin Limit Link select box search Image Laravel 5.4 - Markdown Mailables chumper/zipper PHP scrollTop Cache Determine DB Ionic Git unicodeveloper/laravel-password Select Access Sublime text 3 setTimeout() Cross mod_rewrite roumen/feed package Source Code Jquery Modal Auth Datepicker Foreign Key COUNT() file_exists Upgrade bootstrap-progressbar.js Executed array_combine Index Protection Site Email Verification Reset WHERE Query Rewrite Check HTML to PDF Bootbox.js is_null Typeahead JS Commit Scout Package clipboard.js Log Module Generate Current MySQL Subquery word-wrap Autocomplete bootstrap-growl marker daterangepicker Force Interfaces Ionic framework MySql Sitemap Laravel Cashier Apache AngularJS public_path google recaptcha code virtual host Strip Tags Library Object RSS Paytm Vue.JS Ubuntu Calculate json() Field Input Version Manual Numeric SUBSTRING_INDEX() JSON First Admin Bootstrap Theme Homepage Modular Laravel Passport gmaps.js Subscription Image Gallery String Migration Enable Request popupMultiSelect plugin Packages Application Zoho mail Environment Confirm Box Route summernote node.js ajaxStart Laravel 5.2 Login With FB Image Upload Mailgun API laravel-elixir phpmyadmin Datetimepicker Google OAuth Demo Instagram API Failed Blade inject Terminal Pixel Redis preg_match SUM() guzzle http client Last split ANDROID_HOME API Language Multiple Bootstrap Tokenfield Plugin toSql Command mCustomScrollbar Plugin Column Payment Gateway Facebook API Function Global Variable Request Method Bootstrap show password Plugin Resize Image phpword Bootstrap-lightbox Plugin jQuery Socialite Example User