Technical Exam Requirements Create an admin panel using Laravel framework to manage factories and employees. This should include database migrations, seeders, form request validations, and basic authentication. Implement full (CRUD) operations with pagination, and a model event service to log user activities. Admin Panel Setup
Create a database seed to generate initial administrator account:
Email: admin@admin.com
Password: password
Create a basic Laravel authentication to enable administrator login.
Create two database tables using migrations:
Factories
factory_name (required)
location (required)
email
website
Employees
firstname (required)
lastname (required)
factory_id (FK)
email
phone
Implement full create, read, update, and delete (CRUD) operations for both factories and employees.
Utilize Laravel's resource controllers with standard methods:
index
create
store
show
edit
update
destroy
Use Laravel's built-in validation features to ensure all input data meets the required formats and rules.
Display a paginated list of factories and employees, showing 10 entries per page.
Create a model event service to log user activities:
Track the following details:
Model name: Factories or Employees
Record ID
User ID
Changes made (log both old and new values for update and the initial value for creation)