MenuUrl.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 MenuUrl.
  8. *
  9. * @package namespace App\Models;
  10. * @property int $id
  11. * @property string $url_name 连接名称
  12. * @property string $url url地址
  13. * @property int $menu_id 所属菜单ID
  14. * @property int $status 状态,0:未编辑,1:已编辑
  15. * @property \Illuminate\Support\Carbon|null $created_at
  16. * @property \Illuminate\Support\Carbon|null $updated_at
  17. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl newModelQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl newQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl query()
  20. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereCreatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereId($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereMenuId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereStatus($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereUpdatedAt($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereUrl($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereUrlName($value)
  27. * @mixin \Eloquent
  28. * @property int|null $parent_id 父级ID
  29. * @property int|null $child_id 子菜单ID
  30. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereChildId($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereParentId($value)
  32. * @property int|null $type 类型:1:后台地址,2:api地址
  33. * @method static \Illuminate\Database\Eloquent\Builder|MenuUrl whereType($value)
  34. */
  35. class MenuUrl extends Model implements Transformable
  36. {
  37. use TransformableTrait;
  38. /**
  39. * The attributes that are mass assignable.
  40. *
  41. * @var array
  42. */
  43. protected $guarded = ['id', 'updated_at', 'created_at'];
  44. }