Onthego - a Laravel project
Summary
The Project is expanding the process that the shop use to make the management of
their customers and repair service. To move away from paper ticket service to
a digetal management.
First Step
The app starts with a simple collection of customer contract data.
creates the project and adds user auth
composer create-project laravel/laravel Onthego
cd Onthego
composer require laravel/breeze --dev
php artisan breeze:install
First steps we create a default laravel project and install the breeze
authentication. This will lay down the bace structure for administration and
role management.
make the models
create the model and migration
php artisan make:model Customers -m
php artisan make:model Repairs -m
Add role for user
php artisan make:migration add_role_to_users_table --table=users
make the controllers
create the controller resources
- php artisan make:controller CustomerController -r
- php artisan make:controller RepairController -r
- php artisan make:controller PartController -r
create standard controller
- php artisan make:controller DashboardController
- php artisan make:constroller PrintController
make the views
create the views
main layout
- php artisan make:view layout
- php artisan make:view dashboard.index
customers
- php artisan make:view customers.index
- php artisan make:view customers.create
- php artisan make:view customers.edit
repairs
- php artisan make:view repairs.index
- php artisan make:view repairs.create
- php artisan make:view repairs.edit
parts
- php artisan make:view parts.index
- php artisan make:view parts.create
- php artisan make:view parts.edit
edit routes
- /dashboard
- /customers
- /repairs
- /parts
Add Middleware for the roles and authenticate user
notes
Auth
- php artisan make:migration add_role_to_users_table --table=users
- php artisan make:middleware RoleMiddleware
Notifications
- php artisan make:notification UserAlert
- php artisan notifications:table