feat(admin): add admin creation with permissions

This commit is contained in:
2026-08-19 18:23:21 +03:30
parent 407a3e1bec
commit 9d5e325c3f
20 changed files with 2324 additions and 75 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class AdminPermission
*
* @property int $id
* @property int $admin_id
* @property string $permission
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*
* @package App\Models
*/
class AdminPermission extends Model
{
protected $table = 'admin_permissions';
public static $snakeAttributes = false;
protected $casts = [
'admin_id' => 'int'
];
protected $fillable = [
'admin_id',
'permission'
];
public function admin()
{
return $this->belongsTo(Admin::class);
}
}