Skip to content

Tag: laravel-9

Laravel 9 Array Filter

I have this array cart_items and works fine when mapped for database storage as in the code. I need to filter the array using Arr:where(), where the product shop_id is a specific value. I tried using an if function but the code just looped returing true where the shop_id was present. I need to filter the arra…

Does Laravel 8 require PHP 8.1?

So.. I developed a project with Laravel 9, then I had to upload it to my client’s server by FTP ( which was slow and painful ) to find out only afterwards that my client’s server PHP version could not go over 8.0. I tried to open the project live link ( to where I uploaded ) and the composer