for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\LaravelAuth\Models\Pivots;
/**
* Class PermissionRole
*
* @package Arcanedev\LaravelAuth\Models\Pivots
* @author ARCANEDEV <[email protected]>
* @property int permission_id
* @property int role_id
* @property \Carbon\Carbon created_at
* @property \Carbon\Carbon updated_at
*/
class PermissionRole extends AbstractPivot
{
/* -----------------------------------------------------------------
| Properties
| -----------------------------------------------------------------
* The attributes that should be cast to native types.
* @var array
protected $casts = [
'permission_id' => 'integer',
'role_id' => 'integer',
];
| Getters & Setters
* Get the observer class for the pivot table.
* @return string|null
protected function getObserverClass()
return config('laravel-auth.permission-role.observer');
}