mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
32 lines
684 B
PHP
Executable File
32 lines
684 B
PHP
Executable File
<?php
|
|
|
|
namespace Streamline\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use OwenIt\Auditing\Contracts\Auditable;
|
|
|
|
class PermissionCategory extends Model implements Auditable {
|
|
|
|
protected $table = 'permissions_category';
|
|
|
|
/**
|
|
* Get the permissions for the category.
|
|
*/
|
|
public function permissions() {
|
|
return $this->hasMany('Spatie\Permission\Models\Permission');
|
|
}
|
|
|
|
// use laravel-auditing to track database changes
|
|
use \OwenIt\Auditing\Auditable;
|
|
|
|
// use for soft deletes
|
|
use SoftDeletes;
|
|
|
|
// mutate to dates
|
|
protected $casts = [
|
|
'deleted_at' => 'datetime'
|
|
];
|
|
|
|
}
|