David Vincent
Opening a form modal from a widget
you need to add a modal in your view : https://filamentphp.com/docs/3.x/support/blade-components/modal then you add the form into this modal content and your button should trigger $dispatch('open-modal', { id: 'edit-user' }) as mentioned in the doc
3 replies
DeleteBulkAction and ForceDeleteBulkAction policies
I understand your point, even if I don't totally agree. Sometimes you're right, but there are many situations where even if you can delete any, there are some records which can't be deleted. example 1 : a tasks table, each task has an owner, so I can have the viewAny permission, deleteAny permission (to gain access to the bulkAction) but I can only delete mine. Another example will be a table which contains system's entries and entries created by the user, the user can only delete the ones he created, not the system ones. There are many situations. I understand the performance issue, but in my situation I prefer to have a better system logic so I understand that I have to implement my own logic. Maybe the documentation should warn more the users on this.
26 replies
DeleteBulkAction and ForceDeleteBulkAction policies
Yes but from a general perspective, the actual behaviour allows a user to deleteAny (assuming he has the permission) and delete a record for which he has not the permission to. Strange behaviour to me
26 replies
DeleteBulkAction and ForceDeleteBulkAction policies
Maybe I missed smth, deleteAny policy action does not require any model, right ? So we apply delete on a collection of records without checking individual policy. Tell me if I'm wrong ?
26 replies
spa mode does not seem to work with Laravel 11
It seems it's related to latest version of livewire : see https://discord.com/channels/883083792112300104/970354547723730955/1233828603624427661
4 replies