Buổi 3 training (06-2023)
Các bước tạo form đăng kí/đăng nhập
- Tạo dự án laravel mới:
- dùng câu lệnh:
composer create-project laravel/laravel project-name
2. Kết nối database
.env

3. Thực hiện lệnh sau để thực hiện để chạy script tạo Bảng vào CSDL đã thiết lập:
php artisan migrate
4. Tạo model và controller
php artisan make:controller UserController --resource --model=User
app/Models/User.php

app/Http/Controllers/UserController.php

5. Tạo view
layout.blade.php

login.blade.php

register.blade.php

6. Thiết lập Route
web.php
