12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Prettus\Repository\Contracts\Transformable;
- use Prettus\Repository\Traits\TransformableTrait;
- /**
- * Class Menu.
- *
- * @package namespace App\Models;
- * @property int $id
- * @property string $menu_name 菜单名称
- * @property int $p_id 父级菜单ID
- * @property int $level 级别
- * @property string $url_ids 菜单路由ID
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @property string|null $label_name 标签名称
- * @property string|null $url_name 绑定连接
- * @method static \Illuminate\Database\Eloquent\Builder|Menu newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Menu newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Menu query()
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereLabelName($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereLevel($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereMenuName($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Menu wherePId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereUpdatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereUrlIds($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereUrlName($value)
- * @mixin \Eloquent
- * @property string $p_ids 父级菜单族谱
- * @method static \Illuminate\Database\Eloquent\Builder|Menu wherePIds($value)
- * @property int|null $sort 排序
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereSort($value)
- * @property int|null $version 版本 1旧版 2新版
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereVersion($value)
- * @property int|null $is_del
- * @method static \Illuminate\Database\Eloquent\Builder|Menu whereIsDel($value)
- */
- class Menu extends Model implements Transformable
- {
- use TransformableTrait;
- /**
- * The attributes that are mass assignable.
- *
- * @var array
- */
- protected $guarded = ['id', 'updated_at', 'created_at'];
- }
|