Eloquent::getModel PHP Method

getModel() public static method

Get the model instance being queried.
public static getModel ( ) : Model
return Illuminate\Database\Eloquent\Model
        public static function getModel()
        {
            return \Illuminate\Database\Eloquent\Builder::getModel();
        }

Usage Example

コード例 #1
0
ファイル: FormFilter.php プロジェクト: larakit/lk
 function __construct($model)
 {
     $this->model = $model::select();
     $this->base_url = \URL::current();
     $this->form = new LaraForm('filter_' . $this->model->getModel()->getEntity(), 'get');
 }
Eloquent