<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Dao; use Illuminate\Database\Eloquent\Model; use ModStart\Core\Util\FileUtil; use ModStart\Core\Util\StubUtil; class DynamicModel extends Model { public static function make($Y2RbY) { goto gQdYn; Ix5b3: $AEqP7 = '\\DynamicModel\\' . $rXcrQ; goto k9xPs; k9xPs: if (!class_exists($AEqP7)) { goto NA5S0; mLHNC: require $fWBvH; goto Anx_D; NA5S0: $fWBvH = base_path('bootstrap/cache/' . $rXcrQ . '.php'); goto iAjPC; iAjPC: if (!file_exists($fWBvH)) { $ohNZt = StubUtil::render('DynamicModel', array('className' => $rXcrQ, 'table' => $Y2RbY)); file_put_contents($fWBvH, $ohNZt); } goto mLHNC; Anx_D: } goto qwKzY; gQdYn: $rXcrQ = 'DynamicModel_' . $Y2RbY; goto Ix5b3; qwKzY: return new $AEqP7(); goto gNSC3; gNSC3: } }