RolePermission.php 783 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Prettus\Repository\Contracts\Transformable;
  5. use Prettus\Repository\Traits\TransformableTrait;
  6. /**
  7. * Class Role.
  8. *
  9. * @package namespace App\Models;
  10. * @method static \Illuminate\Database\Eloquent\Builder|RolePermission newModelQuery()
  11. * @method static \Illuminate\Database\Eloquent\Builder|RolePermission newQuery()
  12. * @method static \Illuminate\Database\Eloquent\Builder|RolePermission query()
  13. * @mixin \Eloquent
  14. */
  15. class RolePermission extends Model implements Transformable
  16. {
  17. public $table='role_has_permissions';
  18. use TransformableTrait;
  19. /**
  20. * The attributes that are mass assignable.
  21. *
  22. * @var array
  23. */
  24. protected $guarded = ['id', 'updated_at', 'created_at'];
  25. }