Best practise for features that an app should have
Hi all. Could you share your opinion about features that can be considered good practice to be implemented in a Laravel project?
For, in a project of mine ,I have
Roles implemented
Policies for models
Email verification
To enhance the user accounts, I have implemented an additional feature, that requires a confirmation when a user email is changed (send an email to the old/current email account that a request to change has been made and the user can either confirm or deny the change)
It is not necessary to provide a code, just suggestions or something that you regularly do in your projects. Or The first thing I do when setting up a Laravel projects is ...
Test: Yes, I am working on them and keep track of the coverage
I am using filament, so my front end is built with Livewire components using the filament tables/forms, so I think the validation is covered.
I've implemented rmsramos/activitylog which is a Filament plugin built upon Spatie/Laravel-activitylog. It allows the admins to view all actions taken upon a given model, what is the action and who has executed the action. Also, in case of an update, it also shows which fields are updated with their old and new value. Is that the kind of logs you are talking about?
P.S.: I am using Filament to create a dedicated panel for Administrators/Moderators, and I do not have a dedicated panel for the front end as my theme is quite custom and not very suited for implementation alongside a filament panel.
@Sinnbeck You mean like setting string(), email(), required etc.? Yes, I have that. The only thing I have not tuned yet is to set the allowed length for strings. Anyway, my forms, tables, infolists etc. are refactored into a trait for each model and I used the trait whenever and wherever needed so this will be no issue as a final touch.