123456789101112131415161718192021222324252627282930 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Prettus\Repository\Contracts\Transformable;
- use Prettus\Repository\Traits\TransformableTrait;
- /**
- * Class Role.
- *
- * @package namespace App\Models;
- * @method static \Illuminate\Database\Eloquent\Builder|RolePermission newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|RolePermission newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|RolePermission query()
- * @mixin \Eloquent
- */
- class RolePermission extends Model implements Transformable
- {
- public $table='role_has_permissions';
- use TransformableTrait;
- /**
- * The attributes that are mass assignable.
- *
- * @var array
- */
- protected $guarded = ['id', 'updated_at', 'created_at'];
- }
|