Rinvex\Repository\Repositories\BaseRepository::getContainer PHP Method

getContainer() public method

Get the IoC container instance or any of it's services.
public getContainer ( string | null $service = null ) : object
$service string | null
return object
    public function getContainer($service = null)
    {
        return is_null($service) ? $this->container ?: app() : ($this->container[$service] ?: app($service));
    }