Is it possible to make a dynamic answer using imageCropAspectRatio, on filament?
I’m encountering an issue with Filament. I want to crop the image based on the orientation that the category has in the database. However, I’m not sure if it’s possible to do this. I’m new to using the Filament framework. If any of you have developed something similar before, could you please help me? Here is a snippet of my code:
Laravel’s chunkById infinite loop on ambiguous column
While doing a script which is used to send users a notification one day before their subscription ends, will fetch the users by joining users and subscription table. I was using chunkById only with three parameters (without the alias param) which resulted in an infinite loop of users fetching.
Render the default Laravel 404 page in Laravel 11 when page is not found
in my laravel 10, I had a appExceptionsHandler.php
class to render a json response when something try to access an invalid api endpoint or to render the default framework 404 page when something try to access a non-existent non-api page:
Photos do not display when the application is moved to production
I have an application on shared hosting. The uploaded images are located in the storagepublicactors
directory. On localhost everything worked ok, but on production it doesn’t anymore (I changed the paths in index.php). Interestingly uploading images works fine, only they don’t display in the view. A 404 error is reported.This is how I tried to insert the photo
419 error during login and register on productaction in Laravel 11
I’ve created my first project in Laravel 11. On localhost everything works but on production when I try to log in or register I always get error 419 (I’m using Breeza and haven’t done anything to it). Has anyone had a problem with this? I tryed change SESSION_DRIVER=file
and create session table but it didn’t do anything.
Get the Abbreviation of a Phrase in PHP
How do I get the abbreviation for a phrase in Laravel or php, for instance: