feat: add auth routes and update register view
This commit is contained in:
+8
-6
@@ -6,13 +6,15 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Enums\UserGender;
|
||||
use App\Enums\UserMaritalStatus;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Foundation\Auth\User as Authenticated;
|
||||
/**
|
||||
* Class User
|
||||
*
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $first_name
|
||||
* @property string $last_name
|
||||
@@ -30,19 +32,19 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
* @property string|null $deleted_at
|
||||
*
|
||||
*
|
||||
* @property File $file
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class User extends Model
|
||||
class User extends Authenticated
|
||||
{
|
||||
use SoftDeletes;
|
||||
protected $table = 'users';
|
||||
|
||||
protected $casts = [
|
||||
'gender' => 'bool',
|
||||
'marital_status' => 'int',
|
||||
'gender' => UserGender::class,
|
||||
'marital_status' => UserMaritalStatus::class,
|
||||
'file_id' => 'int'
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user