- Create a new Filament custom admin user user custom ->
sail artisan create:admin-user
- command for configuring shell alias from
./vendor/bin/sail
tosail up
->alias sail='sh $([ -f sail ] && echo sail || echo vendor/bin/sail)'
- command for relating UserResource to Employee ->
php artisan make:filament-relation-manager ClientResource Employee user_id
- Accessing mysql shell command ->
sh mysql -u root -p
- Admin and employee access roles ✅
- Work on how disabled fields work ✅
- proper text editor for textareas ✅
- Admin can only register employees ✅
- employees can only regeister clients ✅
- Some Pet fields in the tables are blank ✅
- formating the relation manager to do it work. ✅
- Client can sign in with client id and password. ✅
- Properly format the form fields and table fields ✅
- Enums for static data like default password and all ✅
- work on the autorizations form admin and regular models ✅
- Implement factories and seeders for client, employee and admin users.✅
- Dummy data for admin, employees, clients,pet, and pet activities schedules ✅
- After creating a form the field should be cleared and redirected to the main list ✅
- anything involving primary id (User, pet, etc) should use UUID as primary identifier ✅
- Remove the name Tobi Adebisi from my repo(cleared the git global config name and email)✅
- Implement Pet activity schedules relation manager for employee resource and PetResource ✅
- Test Employee status feature and the new IsEmployee middleware with the status active and not✅
- saving images, profile pictures and cv documents of users and employees should be implemented✅
- the "client_id",in the user model not being input into the filament form so i will work debugging the update fields. ✅
- create relationship manager between petResource and PetActivitySchedule then with employee and pet activity schedule to view all activity under an employee ✅
- display avatar for images✅
- image upload with filament✅
- file upload with filament(CV)✅
- remove cloudinary/cloudinary_php✅
- implement file upload with cloudinary✅
- employee CV and other documents of the employee to be saved on cloudinary.✅
- make sure view resume upload works
- IF an employee is sacked or resigned they are unable to access their account✅
- attack the schema widleware to monitor sacked or deactivated
- employee status field hired or resigned and once resign is clicked an employee wiil have a resignation data-table
- Implement better error handling for the admin panel UI
- Upload many certifications and documentation for employees
- Implementing Notification and mailing system between client and employees
- Implementing laravel database import, export and excel conversion with laravel excel
- Dashboard for Clients to track client activities
- Admin dashboard updates and revampining
- deploy the project
- male stud service sector
- mailing and notifications for admin
- apointment booking system
- Inventory management system
- Employee view profile page and edit some features
- make sure pet profile profile picture is working
- implement forget and reset password for admin and employees
- make user be in charge of updating their password by themselves
- forget and reset password
- update password upon registration
- admin ability to authenticate self or login as a particular user
- admin send mail button to user so password should be updated by the user
- make edit customer input field not required for some fields when trying to edit users
- Get parents record from a filament relationship
public function form(Form $form): Form
{
dd($this->getOwnerRecord());
}
- Populate fields from the database and add them into filament fileds
default(
function (?User $record, Get $get, Set $set) {
if (!empty($record) && empty($get('client_id'))) {
$set('client_id', $record->client_id);
}
return "DPW/client/" . generateId();
})
// this function might have a similar feel
// disabled(fn ($record) => $record !== null)
-
Get more eloquent fields from and add to a filament form
Select::make('pet_id') ->relationship(name: 'pet', titleAttribute: "name") ->getOptionLabelFromRecordUsing(function (Pet $record) { return "{$record->name} ({$record->breed} | {$record->user->client_id})"; })
-
Adding uuid to fields id
$new_user = new User(); $new_user->id = Str::uuid();
-
set a field to ReadOnly
Forms\Components\TextInput::make('file_number')->readOnly()
-
filament handle record creation used to debug incase there's error in saving data.
protected function handleRecordCreation(array $data): Model { $data["employee_id"] = "DPW/employee/"; return static::getModel()::create($data); }
-
Get the url of a cludinary picture ->
-
Get$cloudinaryUrl = cloudinary()->getUrl($filePath)
or using the method in the table
ImageColumn::make('profile_picture') ->url(fn ($record) => cloudinary()->getUrl($record->profile_picture))