Latest Post


How to push item to 0 index or first of $scope object in AngularJS?

you are working on angular JS and you wanted to add item on top of array, i mean you need to add 0 index of $scope array then you can do. in following example you can see how to do.if you want to push first then you have to use splice() instend of push(). <strong>Example:</strong> <pre class="code language-html"> <html> <head> <title>Angular JS</title> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script&.....

By Hardik Savani | February 2, 2016 | | 856 Viewer | Category : JSON AngularJS
READ MORE

How to increment or decrement a column value in laravel?

Whenever you need to increment or decrement value of column in database, then you do not need to first fetch that record and then update, so that way we will make long code and very hard code, so basically you can increment and decrement by using increment() and decrement() statment of laravel query builder. If you want to increment or decrement opration using update() method of laravel query builder then you also do that, in following example i am showing you how to increment and decrement value of column in table by using increment(), decrement() and update(). <pre class="language-php"> na.....

By Hardik Savani | February 2, 2016 | | 5487 Viewer | Category : Laravel
READ MORE

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Some time when you are open any link your website then browser display following massage <h2 style="margin:0px;padding:0px;">Not Found</h2> <span style="margin:0;padding:0;">The requested URL /test.html was not found on this server.</span> <span style="margin:0;padding:0;">Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</span><br /> this problem fix by .htaccess write following code in your .htaccess file <pre class="language-mysql"> RewriteEngine on <IfModule mod_rewrite.c> RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f Rewrit.....

By Hardik Savani | February 1, 2016 | | 826 Viewer | Category : .htaccess
READ MORE

How to fix and recover a “corrupt history file” in zsh?

Many user use ubuntu OS and many user face one of the common problem several time like “corrupt history file in zsh" most of time face this problem when reboot your OS so, How to fix this problem please follow this command and fix that. <pre class="language-mysql"> mv .zsh_history .zsh_history_bad strings .zsh_history_bad > .zsh_history fc -R .zsh_history </pre>

By Hardik Savani | January 31, 2016 | | 728 Viewer | Category : Ubuntu
READ MORE

How to check empty or null in Mysql Query?

If you want to check empty or null value with conditional statement like case when and if in table row with Mysql database. you like to check empty or null value form table then you have multiple way check that. first we check empty value with case when statement then following example. <strong>Empty Check:</strong> <pre class="language-mysql"> SELECT (CASE WHEN COALESCE(email,'')!='' THEN email ELSE 'example@gmail.com' END) as test FROM `customers` ---------------------OR---------------------- SELECT (CASE COALESCE(email,'') WHEN '' THEN 'example@gmail.com' ELSE email END) as test FR.....

By Hardik Savani | January 31, 2016 | | 800 Viewer | Category : PHP MySql
READ MORE


    Laravel 5 create custom artisan command with example

    Laravel 5 create custom artisan command with example

    Open Post

    Laravel 5.3 - Customize pagination templates example from scratch

    Laravel 5.3 - Customize pagination templates example from scratch

    Open Post

    PHP - Input multiple tags with dynamic autocomplete example

    PHP - Input multiple tags with dynamic autocomplete example

    Open Post

    How to integrate paypal payment gateway with laravel 5.4

    How to integrate paypal payment gateway with laravel 5.4

    Open Post

    How to install laravel framework on windows xampp server from scratch?

    How to install laravel framework on windows xampp server from scratch?

    Open Post

    Solved Issue - "/usr/bin/env: ‘node’: No such file or directory"

    Solved Issue - "/usr/bin/env: ‘node’: No such file or directory"

    Open Post