for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yajra\Address\Repositories\Provinces;
use Yajra\Address\Entities\Province;
use Yajra\Address\Repositories\EloquentBaseRepository;
class ProvincesRepositoryEloquent extends EloquentBaseRepository implements ProvincesRepository
{
/**
* Get province by region ID.
*
* @param int $regionId
* @return \Illuminate\Database\Eloquent\Collection
*/
public function getProvinceByRegion($regionId)
return $this->getModel()->newQuery()->where('region_id', $regionId)->orderBy('name', 'asc')->get();
orderBy()
Illuminate\Database\Eloquent\Builder
enforceOrderBy()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
}
* Get repository model.
* @return \Illuminate\Database\Eloquent\Model
public function getModel()
$model = config('address.models.province', Province::class);
return new $model;
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.