for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\LaravelAuth\Models\Pivots;
/**
* Class RoleUser
*
* @package Arcanedev\LaravelAuth\Models\Pivots
* @author ARCANEDEV <[email protected]>
* @property int user_id
* @property int role_id
* @property \Carbon\Carbon created_at
* @property \Carbon\Carbon updated_at
*/
class RoleUser extends AbstractPivot
{
/* -----------------------------------------------------------------
| Properties
| -----------------------------------------------------------------
* The attributes that should be cast to native types.
* @var array
protected $casts = [
'user_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.role-user.observer');
}