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 | | 49888 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 | | 1826 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 | | 1893 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 | | 485 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 | | 929 Viewer | Category : Laravel

Animation After Source Code Ip Address Manual Technology Object to Array Upgrade Authentication npm Links Sortable csv gulp Timepicker Ionic Artisan Command select box search Admin Panel Top Export AngularJS Jquery Modal CURL Controluser Bootstrap Tokenfield Plugin Library Algolia Package JWT Ubuntu Popup Box Laravel 5.4 - Markdown Mailables Interface Append Terminal Installation Typeahead JS inner join PHPUnit Setup Redis Percentage Current yajra/laravel-datatables-oracle public_path Letter Segment Namespace DATEDIFF() Last Validation Environment INTERVAL Demo Xampp User Agent AngularJS Directive Dialog box Old no-captcha Parsleyjs Vue.JS refspec Chart.js colorpicker ServiceProvider MassAssignmentException chumper/zipper Fetch Mediafıre API CRUD Form JS Plugin Gmail Cordova Schema voyager package Laravel 5.3 Contact US Form Calculate Artisan Accordion Force Twitter API Limit chmod Custom Allow JS Codeigniter 3 Blocked CloudConvert API Snippet Repo Parsley Paypal Integration Datetimepicker Rewrite FILTER_VALIDATE_URL Site ppa tagsinput.js Phonegap Migration Determine Add 404 error page Attribute Directory filter mac Subscription Event Draggable characters Hard SEO Google Chart Each Laravel 4 ngclipboard.js daterangepicker Flash Message Sendgrid Mail Eloquent-Sluggable Package Remove Select Query Package Google Map Lavacharts Twitter OAuth Location Plugins Module Homepage is_null xoxco tags input LIKE Query Sql scrollTop Controller Laravel 5 mod_rewrite Billing XML maatwebsite Trans Helper HTML Instagram API Query