<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* App\Models\Navigation
*
* @property int $id
* @property string $alias 别名
* @property int $urltype 类型(1:系统内 0:系统外)
* @property int $display 是否显示(0:不显示 1:显示)
* @property string $title 栏目名称
* @property string $color 显示颜色
* @property string $pagealias 系统页面别名
* @property string $tag 导航关联
* @property string|null $url 链接地址
* @property string $target 打开方式
* @property int $order 排序
* @property int|null $is_personal 是否个人中心(0:不是 1:是)
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string|null $deleted_at
* @method static bool|null forceDelete()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation newQuery()
* @method static \Illuminate\Database\Query\Builder|\App\Models\Navigation onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation query()
* @method static bool|null restore()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereAlias($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereColor($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereDisplay($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereIsPersonal($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereOrder($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation wherePagealias($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereTag($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereTarget($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereUrl($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Navigation whereUrltype($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\Navigation withTrashed()
* @method static \Illuminate\Database\Query\Builder|\App\Models\Navigation withoutTrashed()
* @mixin \Eloquent
*/
class Navigation extends Model
{
use SoftDeletes;
public function navigationCategorys()
{
return $this->belongsTo(NavigationCategory::class, 'alias', 'alias');
}
}