File manager - Edit - /home/autoph/public_html/projects/aha-api/app/Models/Role.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use OwenIt\Auditing\Contracts\Auditable; use OwenIt\Auditing\Auditable as AuditableTrait; class Role extends Model implements Auditable { use HasFactory, SoftDeletes, AuditableTrait; protected $connection = 'hr'; /** * The attributes that are NOT mass assignable. * */ protected $guarded = [ 'deleted_at', ]; /** * The attributes that should be cast. * * @var array<string, string> */ protected $casts = [ 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at' => 'datetime', ]; protected $with = [ 'group' ]; /** * Get the group that owns the Role * */ public function group() { return $this->belongsTo(RoleGroup::class, 'group_id', 'id'); } public function company_access() { return $this->hasMany(RoleCompanyAccess::class, 'role_id', 'id'); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings