Latest Post

How to find day from specific date in PHP?

Whenever you need to det day like Monday, Tuesday etc from full date. i mean you have any specific date like "2015-10-10" and you want to get day then you can do in both way first using strtotime() and second using DateTime object. In Following example you can see i give you both way to get day from your date. now i added format 'l' so it will return full name of day like "Tuesday", but if you want to get short name of day then you can change format like "D". <pre class="language-php"> // Using strtotime() $specificDate = strtotime('2016-2-3'); $specificDate = date('l', $specificDate); var_d.....

By Hardik Savani | February 3, 2016 | | 558 Viewer | Category : PHP
READ MORE

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 | | 685 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 | | 2800 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 | | 611 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 | | 578 Viewer | Category : Ubuntu
READ MORE


Homepage Installation Highchart Artisan chmod Ip Address public_path tagsinput.js Billing Contact US Form str_replace Listener CORS LIKE Query Control php artisan serve Bootstrap Plugin PHP artisan Highlight JS Numeric Dynamic Dependant Dropdown Laravel Builder yajra/laravel-datatables-oracle Blocked Mailchimp API Admin Panel throttle Example google recaptcha code Tutorial Paging pop() Toggle Behance API str_random() Strings Animate max_file_uploads CRUD COUNT() Class Google OAuth Form Validation Scratch word-wrap orderBy JSON Custom Auth Package uppercase Ubuntu 14.04 Enable Path CURL Packages Issue MVC API Remove JWT clockface plugin Request Method Special stevebauman/location composer package Key String Capitalize CloudConvert API Route Vue.JS Object refspec csv Authentication groupBy() Draggable Scout Package Specific Scroll croppie.js AngularJS Filter socket Setup Key Constraint dompdf Base URL thujohn/twitter package Autocomplete Paypal Integration Tracking roumen/sitemap FadeOut Mysql Concat ServiceProvider Command Mail Barcode ID Jquery UI clearbit API XSS PingPong Lavacharts Algolia Package Exists Directory Pixel typed.js plugin is_null helper Join array_change_key_case toastr js Windows Element Configuration gulp Interface Source Code Manual Reset execute query Sortable enableQueryLog Foreign Key Old PostgreSQL Delete length php_ini_loaded_file Check Parsleyjs Xampp Permission Accordion HTML Frontside Validation xoxco tags input Phonegap Site Update hasTable Botdetect Captcha colorpicker Eloquent-Sluggable Package setInterval() hasColumn Send auth()