Skip to content

Commit 1b30454

Browse files
rollback: xóa nhầm user avatar
1 parent 21dc69d commit 1b30454

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ cp .env.example .env
88
php artisan key:generate --force
99
php artisan storage:link
1010
php artisan migrate
11+
# tạo tài khoản admin, nhập [email protected] và password
12+
php artisan make:filament-user
1113
```
1214

1315
## Đồng bộ code từ template này

app/Models/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* @property int $id
1616
* @property string $name
1717
* @property string $email
18+
* @property string|null $avatar
1819
* @property \Illuminate\Support\Carbon|null $email_verified_at
1920
* @property string $password
2021
* @property string|null $remember_token

database/migrations/0001_01_01_000000_create_users_table.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public function up(): void
1515
$blueprint->id();
1616
$blueprint->string('name');
1717
$blueprint->string('email')->unique();
18+
$blueprint->string('avatar')->nullable();
1819
$blueprint->timestamp('email_verified_at')->nullable();
1920
$blueprint->string('password');
2021
$blueprint->rememberToken();

0 commit comments

Comments
 (0)