DrByte
unique rule from filament is case sensitive ?
That is probably related to your database's character-set and that field's
collation
.
For example if your collation is utf8_mb4_general_ci
, the _ci
part means case-insensitive
, and in that scenario the database does internal pattern-matching to treat uppercase and lowercase "the same". In majority of situations this is desired. But if you have a certain field in your database that needs to be case-sensitive, you could explore using the _cs
version of the same collation. Be sure to test from every angle though, as mixed-collations can cause problems with query-joins where both sides of the joining field use different collations (granted, most joins are on integer fields, not text).
Worth exploring whether some database-specific factors are causing the problem you reported.3 replies
Don't allow user to delete notifications
You probably have to override the
notification.blade.php
and remove <x-filament-notifications::close-button />
But, by doing that you make it harder to upgrade, because any future updates to that blade file will have to be manually applied by you every time you update to the latest Filament.5 replies
What does `->evaluate()` do?
Dan did a video series on Laracasts where he explains in detail how
evaluate()
came about and how it works. https://laracasts.com/series/build-advanced-components-for-filament5 replies
Change a resource attribute/property from an action.
Here's how I did it in one app: https://discord.com/channels/883083792112300104/1195793041290707065/1195793041290707065
13 replies
Tracking Read/Unread or Viewed/NotViewed
So, for example combining both of these view indicators and tracking open-clicks on a Table that uses a Split/Grid (to show Cards instead of rows), define the
$table
with
And to register the css:
AppServiceProvider.php
/resources/views/custom-css.blade.php
:
9 replies
Login issue after deploying
I think the command you're referring to is
php artisan filament:assets
... which basically copies the assets from Filament's vendor directory into your app's public/js
and public/css
directories. You can do that on your local PC and then upload those directories to your server, and not have to run the command on the server.31 replies
token_get_all() Error in production
Looks like the discussion was here: https://discord.com/channels/883083792112300104/883084832387760148/1194237566111715418
6 replies
file upload error 422 on local machine
What's the file type you're uploading?
If you're uploading a file of correct extension that matches the file header, but the rest of the file isn't correct for that type (like JSON but has invalid JSON, or XML but invalid XML due to missing braces/etc) then 422 or 415 will trigger.
So a corrupt file may trigger it.
I suppose if your browser and your server have different compression algorithms set in them then any compression could corrupt the file.
So: test on a production server, not just local. Test on an actual webserver engine like Nginx not just "php serve".
6 replies