Files
streamline-emr/docker/_streamline-src/app/Models/PermissionCategory.php
T

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'
];
}