public function makeModel()
    {
        if (!($this->model = $this->app->make($this->takeModel())) instanceof Eloquent) {
            throw new InvalidRepositoryModel(get_class($this->model), Eloquent::class);
        }

        return $this->model;
    }
public function makeModel()
    {
        if (!($this->model = $this->app->make($this->takeModel())) instanceof Eloquent) {
            throw new InvalidRepositoryModel(get_class($this->model), Eloquent::class);
        }

        return $this->model;
    }
public function makeModel ( ) { if ( ! ( $ this -> model = $ this -> app -> make ( $ this -> takeModel ( ) ) ) instanceof Eloquent ) { throw new InvalidRepositoryModel ( get_class ( $ this -> model ) , Eloquent :: class ) ; } return $ this -> model ; }
Return instance of Eloquent model.

@throws InvalidRepositoryModel

@return Eloquent
Return instance of Eloquent model .