git add .

git commit "Implement user registration"
This commit is contained in:
2026-08-16 08:52:04 +03:30
parent cd74c1848a
commit 687681744a
22 changed files with 1036 additions and 210 deletions
+42
View File
@@ -0,0 +1,42 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* Class Permission
*
* @property int $id
* @property string $name
* @property string $slug
* @property string|null $description
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*
* @property Collection|Role[] $roles
*
* @package App\Models
*/
class Permission extends Model
{
protected $table = 'permissions';
public static $snakeAttributes = false;
protected $fillable = [
'name',
'slug',
'description'
];
public function roles()
{
return $this->belongsToMany(Role::class, 'role_permissions');
}
}