Latest Post


How to convert array key to lowercase in PHP?

Whenever you require to create all array key in lowercase then you can create that without using loop. you have to just use array_change_key_case(), array_change_key_case function take two argument one for array and second one for php function "CASE_LOWER". May be we need to do this when we are working on big projects and need to all key in small case. So, how to convert array values to lowercase using array_change_key_case(), see bellow example and learn how to work. <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> $myArray = ['Hey'=>'Hey','HELLO'=>'Hello','hi'=>'.....

By Hardik Savani | April 6, 2016 | | 966 Viewer | Category : PHP
READ MORE

How to solve 'There are no commands defined in the "cashier" namespace' in Laravel 5

When i did start to learn "Laravel Cashier" and i was following step by step of laravel official document, but i run bellow command : <pre>php artisan cashier:table users</pre> At that time i found following error on my terminal: <pre>[Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "cashier" namespace.</pre> I try to solve this error, i also clear all cache and add service provider, it means i try totally and i can't found solution for this error, but you can also add migration like this way if you want it is a same like we did bellow c.....

By Hardik Savani | April 6, 2016 | | 6548 Viewer | Category : Laravel
READ MORE

Laravel 5 generate sitemap using roumen/sitemap package Example

In this post i want to githubve example of generate dynamic sitemap using "roumen/sitemap" package. sitemap is very usefull for SEO. you can submit your sitemap on google webmaster, bing webmaster etc that way you can increase website rank and web traffic. So, if you are working on Laravel framework then you can use "roumen/sitemap". this package will helps to generate dynamic sitemap of website. so it's very simple way to use and pretty interesting package. you can also add image on sitemap. this package is also provide to generate sitemap and store it on you folder etc. you can also see the .....

By Hardik Savani | April 6, 2016 | | 13191 Viewer | Category : PHP Laravel Sitemap
READ MORE

How to convert array values to lowercase in PHP?

Whenever you require to create all array value in lowercase then you can create that without using loop. you have to just use array_map(), array_map function take two argument one for php function "strtolower" and second one for array. May be we need to do this when we are working on big projects and need to all values in small case. So, how to convert array values to lowercase using array_map(), see bellow example and learn how to work. <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> $myArray = ['1'=>'Hey','2'=>'Hello','3'=>'Hi','4'=>'GM']; $result = array_map('s.....

By Hardik Savani | April 5, 2016 | | 981 Viewer | Category : PHP
READ MORE

Example of trigger on after delete with update query mysql

Sometimes we need to fire trigger like after delete update some fields of another tables. for example if you have chat_message tables and when remove row on this table then we need to update "remove_counter(remove_counter + 1)" on users table. i did give you bellow example you can see how to write trigger code: <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> delimiter // CREATE TRIGGER add_ban_counter_in_users AFTER DELETE ON `chat_messages` FOR EACH ROW BEGIN UPDATE `users` SET remove_counter = users.remove_counter + 1 WHERE users.id = old.user_id.....

By Hardik Savani | April 5, 2016 | | 2136 Viewer | Category : PHP MySql SQL
READ MORE


Laravel 5.5 Mail Laravel Passport Record ppa Laravel Builder Nodejs Particular Highlight JS Trigger Inserted Id dompdf Google Map Stripe DB Statement pngquant Progress Bar Append INTERVAL softDeletes Object Location Application Specific clipboard.js bootstrap-multiselect plugin tree view Control ACL API SweetAlert Plugin marker Prompt modal Billing Timepicker node.js Exists webpatser/laravel-uuid Notification FIND_IN_SET() Bootstrap Notify Plugin laravel-elixir Moment JS Generate Convert Jquery Dialog Box daterangepicker Kyslik/column-sortable package filesize() Laravel 4 Each Permission Auth maatwebsite Algolia Package Function Character Bootstrap Plugin URL Image Gallery Trans Helper DB::raw() Technology Enable Homepage PostgreSQL Select response() Twitter API str_replace File Effect Value Middleware Image Scroll Cache CASE_LOWER MySql Collapse Bootstrap Tokenfield Plugin Login With FB length Route Remove Commit Sortable jquery.email-autocomplete.min.js setInterval() milon/barcode Lightbox Windows Jquery UI php artisan serve Div Namespace ajaxStart Hard Send Bootstrap-lightbox Plugin thujohn/twitter package React JS Redirect Numeric Add Limit date_format() Recursive php.ini Database Eloquent-Sluggable Package Laravel Jquery Plugin scrollTop array_combine Chart.js Grayscale Image FILTER_VALIDATE_URL Dropbox API Base URL Now guzzle http client Thumbnails Laravel 5.3 500 error page Amazon S3 Popup Box Class Check popupMultiSelect plugin Sublime Paytm Failed MassAssignmentException Connection Demo auth() thomaswelton/laravel-gravatar Access Scratch google recaptcha code FadeIn Laravel Cashier orderBy helper Sendgrid slice() Animate Twitter Bootstrap clearInterval()