Encore\Admin\Grid::resource PHP Метод

resource() публичный Метод

Get current resource uri.
public resource ( string $path = null ) : string
$path string
Результат string
    public function resource($path = null)
    {
        if (!empty($path)) {
            $this->resourcePath = $path;
            return $this;
        }
        if (!empty($this->resourcePath)) {
            return $this->resourcePath;
        }
        return app('router')->current()->getPath();
    }