Menu.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 Menu.
  8. *
  9. * @package namespace App\Models;
  10. * @property int $id
  11. * @property string $menu_name 菜单名称
  12. * @property int $p_id 父级菜单ID
  13. * @property int $level 级别
  14. * @property string $url_ids 菜单路由ID
  15. * @property \Illuminate\Support\Carbon|null $created_at
  16. * @property \Illuminate\Support\Carbon|null $updated_at
  17. * @property string|null $label_name 标签名称
  18. * @property string|null $url_name 绑定连接
  19. * @method static \Illuminate\Database\Eloquent\Builder|Menu newModelQuery()
  20. * @method static \Illuminate\Database\Eloquent\Builder|Menu newQuery()
  21. * @method static \Illuminate\Database\Eloquent\Builder|Menu query()
  22. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereCreatedAt($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereLabelName($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereLevel($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereMenuName($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|Menu wherePId($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereUpdatedAt($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereUrlIds($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereUrlName($value)
  31. * @mixin \Eloquent
  32. * @property string $p_ids 父级菜单族谱
  33. * @method static \Illuminate\Database\Eloquent\Builder|Menu wherePIds($value)
  34. * @property int|null $sort 排序
  35. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereSort($value)
  36. * @property int|null $version 版本 1旧版 2新版
  37. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereVersion($value)
  38. * @property int|null $is_del
  39. * @method static \Illuminate\Database\Eloquent\Builder|Menu whereIsDel($value)
  40. */
  41. class Menu extends Model implements Transformable
  42. {
  43. use TransformableTrait;
  44. /**
  45. * The attributes that are mass assignable.
  46. *
  47. * @var array
  48. */
  49. protected $guarded = ['id', 'updated_at', 'created_at'];
  50. }