![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/clinic.corals.io/app/Models/ |
<?php namespace App\Models; use Database\Factories\RoleFactory; use Eloquent as Model; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Carbon; use Spatie\Permission\Models\Role as roleModal; use Illuminate\Database\Eloquent\Factories\HasFactory; /** * Class Role * * @package App\Models * @version August 5, 2021, 10:43 am UTC * @property string $name * @property int $id * @property string $display_name * @property int $is_default * @property string $guard_name * @property Carbon|null $created_at * @property Carbon|null $updated_at * @property-read Collection|\Spatie\Permission\Models\Permission[] $permissions * @property-read int|null $permissions_count * @property-read Collection|User[] $users * @property-read int|null $users_count * @method static RoleFactory factory(...$parameters) * @method static Builder|Role newModelQuery() * @method static Builder|Role newQuery() * @method static Builder|Role permission($permissions) * @method static Builder|Role query() * @method static Builder|Role whereCreatedAt($value) * @method static Builder|Role whereDisplayName($value) * @method static Builder|Role whereGuardName($value) * @method static Builder|Role whereId($value) * @method static Builder|Role whereIsDefault($value) * @method static Builder|Role whereName($value) * @method static Builder|Role whereUpdatedAt($value) * @mixin Model */ class Role extends roleModal { use HasFactory; protected $table = 'roles'; public static $rules = [ 'display_name' => 'required|unique:roles,display_name', 'permission_id' => 'required', ]; }