I have those 3 commands to run in schedule. $schedule->command(“update:branchsales”)->everyFiveMinutes()->timezone(‘America/Sao_Paulo’)->withoutOverlapping(); $schedule->…
Custom WooCommerce datepicker checkout field saved and displayed on orders and emails
I have added a new custom datepicker field on the WooCommerce checkout page. I am using Enabling a date-picker in Woocommerce checkout fields. All it’s OK On checkout page. But now I really don’t know how can I save and add this new field on the order notes. Any help is appreciated. Answer Section…
Generate unique numbers with simultaneous access
Situation: People will order tickets on my system and i want to generate ticket numbers. The application is not that big and it’s working already. Backend is completly written in vanilla php. But i …
Laravel Lumen 5.7, debugbar throw Call to a member function listen on null
I’m trying to use the debugbar with lumen and jenssegers/laravel-mongodb , it wasn’t showing the database queries so I enabled. DB::connection(‘mongodb’)->enableQueryLog(); But now it shows this error. `Call to a member function listen() on null in LaravelDebugbar.php line 354` Anot…
Refactoring create_function for php 7.2
I need to refactor a piece of php code to work with 7.2 but i am not sure if the way i did it is correct. I could use some info about it. This is the old code And this is the code i refactored for 7.2 Is it correct or did i mess up ? Answer You missed out
Why does Laravel API Resource data come this way?
I’m writing an API Resource. I think it’s about OOP. In the first code, the fullName field is empty, more precisely, only last_name comes. But in the second code it works exactly as I wanted it. What …
Laravel: mkdir(): Permission denied
I deployed my website to an apache webserver and try to make tinker work. I have the problem that I can’t use tinker in Laravel with my user (clashfinder), with the command php artisan tinker. I get …
Laravel form validation using where clause
I’m working on a small project using Laravel and everything is ok with me just i would like to know how can i add a where clause in my validation rule this my code : public function rules() { …
How do I loop through a JSON array with React Native?
I’ve recently started on a React Native project and have been struggling with mapping JSON objects A LOT. I’ve looked through a lot of posts but have received the same error each time. Below is a few …
Allow only Local Pickup for specific products outside specific Shipping Zone in WooCommerce
I have several products in the store, however one product (flammable) can only be shipped via a specific shipping company; Unfortunately that company can’t reach the whole country. So in case the customer buys the flammable product and it’s outside the coverage of the only company that can ship th…