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 | | 1094 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 | | 7121 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 | | 14600 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 | | 1127 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 | | 2940 Viewer | Category : PHP MySql SQL
READ MORE


roumen/feed package Run Project Key Constraint Highchart Failed JS Recursive ppa Collapse clearInterval() Interface ajaxStart Google Map xoxco tags input Access Laravel 5 Example Language Strings Jquery UI Paging Setup ngclipboard.js Sublime text 3 Each Tooltip Base URL throttle Segment Bootstrap Notify Plugin gulp maatwebsite Dropbox API PostgreSQL Instagram API Windows pngquant Route After Force SUBSTRING_INDEX() Download clockface plugin Opencart File Mailchimp API Namespace response() Modular whitespace lowercase Flash Message inner join Object GuzzleHttp Enable Chosen JS Remove React JS Repository Pattern Top strpos Import Timepicker Frontside Validation Capitalize Artisan preg_match google recaptcha code encrypter Database Form Validation away() FIND_IN_SET() Ubuntu Key Allow bplist-parser Amazon S3 WHERE Query SUM() Resize Image Character laravel-elixir popupMultiSelect plugin hasColumn upload_max_filesize tree view yajra/laravel-datatables-oracle Last Attribute Link public_path Bitbucket Ckeditor Special Email Where In Query Ajax Request MSSQL Image Upload dompdf getQueryLog DB Statement KCFinder execute query Master Effect Ubuntu 14.04 User Autocomplete Draggable Connection Log Activity URL clipboard.js Controluser Search Admin Panel Add More JQuery socket Client side validation INTERVAL Jquery Dialog Box Laravel 5.4 - Markdown Mailables Select Query apache2 Bootstrap-lightbox Plugin select2.js MVC Function Scratch meta http-equiv tag array_change_key_case Dynamic Dependant Dropdown bootstrap-multiselect plugin Automatically Rewrite Gravatar Image Tutorial Express sven/artisan-view package Foreign Key Homepage array_map Update Now softDeletes Percentage Determine