Role.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. * @property int $id
  11. * @property string $role_name 角色名称
  12. * @property int $status 状态,0:关闭,1:开启
  13. * @property string $permission_ids 拥有的权限ID
  14. * @property \Illuminate\Support\Carbon|null $created_at
  15. * @property \Illuminate\Support\Carbon|null $updated_at
  16. * @method static \Illuminate\Database\Eloquent\Builder|Role newModelQuery()
  17. * @method static \Illuminate\Database\Eloquent\Builder|Role newQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|Role query()
  19. * @method static \Illuminate\Database\Eloquent\Builder|Role whereCreatedAt($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|Role whereId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|Role wherePermissionIds($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|Role whereRoleName($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|Role whereStatus($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|Role whereUpdatedAt($value)
  25. * @mixin \Eloquent
  26. * @property string $name 角色名称
  27. * @method static \Illuminate\Database\Eloquent\Builder|Role whereName($value)
  28. */
  29. class Role extends Model implements Transformable
  30. {
  31. use TransformableTrait;
  32. /**
  33. * The attributes that are mass assignable.
  34. *
  35. * @var array
  36. */
  37. protected $guarded = ['id', 'updated_at', 'created_at'];
  38. }