Latest Post

How to set vertical align middle div by CSS in HTML?

If you want to set vertical align middle text, image, div etc then you can set easily by using following example. you can give vertical align middle by saveral way. i also give you example with output. you use any of the example of vertical align middle by css. I also provide saveral example with difference css so you can easily find your solution. <strong>Example 1:</strong> In this example you can set vertical align middle using display:table and display:table-cell property of css. <div style="width: 500px;background:green;height: 150px;border:1px solid red;display: table;"class="outter"> .....

By Hardik Savani | January 22, 2016 | | 1121 Viewer | Category : HTML CSS
READ MORE

How can make an array from the values of another array's key?

If you are working on PHP or other PHP framework and you want to create array of another array value. now you can see on following example how can you make array form another multidimensional array key's. For example you have array like: <pre class="language-php"> $multi = array( ['1'] => array('id'=>1,'name'=>'hardik'), ['2'] => array('id'=>1,'name'=>'vimal'), ['3'] => array('id'=>1,'name'=>'harshad'), ) </pre> but if you want to this multi-dimensional array just like this way: <pre class="language-php"> $test = array('hardik','vimal','harshad'); </pre> so, we can make t.....

By Hardik Savani | January 21, 2016 | | 611 Viewer | Category : PHP
READ MORE

How to merge two array with same keys without loop in PHP ?

you want to merge two array but without overwrite value then you can see how to merge two array in following example.you have two array and you want to merge with overwrite with key then you fetch many problem. like this two array : <strong>My Array:</strong> <pre class="language-php"> $array1 = [ '0'=> ['name'=>'Hardik','Surname'=>'Savani'], '1'=> ['name'=>'Harsukh','Surname'=>'Makawana'], ]; $array2 = [ '0'=> ['name1'=>'Harshad','Surname1'=>'Pathak'], '1'=> ['name1'=>'Vimal','Surname1'=>'Kashiyani'], ]; </pre> AND You want.....

By Hardik Savani | January 21, 2016 | | 1198 Viewer | Category : PHP
READ MORE

How to create and check custom header with middleware for REST API in Laravel 5 ?

In Laravel 5 REST API project sometime we need to create create our own custom header for security. like : 'X-hardik':'123456'. this was example, that means in your current project your every request with pass your own custom header like i give you example.this custom header can improve your security. we can also check your header is right or wrong.example : <strong>Your Jquery or AngularJS Request</strong> <pre class="language-javascript"> $.ajax({ type: 'POST', dataType: 'json', url: 'http://test.hd/api/login', headers: { 'X-hardik': '123456'}.....

By Hardik Savani | January 20, 2016 | | 7020 Viewer | Category : Laravel
READ MORE

GROUP_CONCAT with different SEPARATOR in laravel Example

Whenever, you need to use GROUP_CONCAT with differente separator(I mean default separator is ',', But you want to change '@','#','&' etc as you want). then you have to use use SEPARATOR keyword in GROUP_CONCAT(). If you are working on laravel then you have to also use DB::raw() for write GROUP_CONCAT() inside the this function. So, Basically how to change seprator in group_concat(), In following example i change ',' separator into '@'.you can use the following example how to use in laravel 4 and 5. <strong>Example:</strong> <pre class="language-php"> $items = DB::table('items') -.....

By Hardik Savani | January 20, 2016 | | 6233 Viewer | Category : Laravel MySql
READ MORE


sven/artisan-view package Chat ANDROID_HOME Pixel daterangepicker PHPUnit upload_max_filesize Subscription roumen/feed package Recursive pngquant Sort DB Calculate Admin Panel Fetch Example Environment getQueryLog Scroll Auth file_exists Listener Old Local Where Not In Query Plugins Record Interface Modal Mailchimp API GET Ajax unicodeveloper/laravel-password Enable setInterval() Accordion virtual host stevebauman/location composer package Chart.js Allow bootstrap-multiselect plugin filter Laravel 5 Paypal Integration SweetAlert Plugin milon/barcode Mysql Concat Loop split MassAssignmentException throttle toastr js Sublime New Features Facade Authentication bootstrap-growl gulp Controller Connection DATE_SUB Import Sitemap tagsinput.js Send Manual SUM() Attribute slice() socket Multi Auth intervention/image Form JS Plugin Installation Jquery Modal Mediafıre API Class Each Clear Bootstrap Tokenfield Plugin select box search Location Setup Ubuntu 14.04 Flash Message User Custom Laravel 5.4 Variable Sql Control mod_rewrite Request Subscribe word-wrap Links Delete Package SMTP Route Query Builder Generate Library strtolower csrf_token Exists Mailgun API FIND_IN_SET() encrypter PHP artisan Export RAND() select2.js Letter Backup Frontside Validation chmod Lavacharts hasTable Image Upload ppa DB::raw() basename() Animation Failed Ionic framework mac Page Request Method AngularJS Filter Client side validation Select Strings Controluser Branch Popup Box Issue Jquery Plugin Animate Top POST Ajax PostgreSQL Thumbnails CORS Commit Socialite Timepicker Empty Character Git