Add Login & Register

This commit is contained in:
R
2022-09-15 11:47:36 +07:00
parent a3b95615d7
commit 300b53942d
40 changed files with 658 additions and 3 deletions

11
app/Models/Address.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Address extends Model
{
use HasFactory;
}

View File

@@ -11,5 +11,14 @@ class Organization extends Model
protected $fillable = [
'name',
'type',
'status',
'description',
'part_of',
];
public function parent()
{
return $this->belongsTo(Organization::class, 'part_of', 'id');
}
}

View File

@@ -21,6 +21,9 @@ class User extends Authenticatable
'name',
'email',
'password',
'phone',
'otp',
'otp_created_at'
];
/**