| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | <?phpnamespace App\Models;use Illuminate\Database\Eloquent\Model;use Illuminate\Database\Eloquent\SoftDeletes;/** * App\Models\CompanyTpl * * @property int $id * @property int $uid 会员ID * @property int $tplid 模版ID * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property string|null $deleted_at * @property-read \App\Models\Company $companys * @property-read \App\Models\Tpl $tpls * @method static bool|null forceDelete() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CompanyTpl newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CompanyTpl newQuery() * @method static \Illuminate\Database\Query\Builder|\App\Models\CompanyTpl onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CompanyTpl query() * @method static bool|null restore() * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CompanyTpl whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CompanyTpl whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CompanyTpl whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CompanyTpl whereTplid($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CompanyTpl whereUid($value) * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CompanyTpl whereUpdatedAt($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\CompanyTpl withTrashed() * @method static \Illuminate\Database\Query\Builder|\App\Models\CompanyTpl withoutTrashed() * @mixin \Eloquent */class CompanyTpl extends Model{    protected $table = 'company_tpls';    protected $guarded = [];    use SoftDeletes;    public function companys()    {        return $this->hasOne(Company::class, 'id', 'uid');    }    public function tpls()    {        return $this->belongsTo(Tpl::class, 'tplid', 'id');    }}
 |