z-song/laravel-admin · error · Exception

To use image handling and manipulation, please install [inte

Error message

To use image handling and manipulation, please install [intervention/image] first.

What it means

Error "To use image handling and manipulation, please install [intervention/image] first." thrown in z-song/laravel-admin.

Source

Thrown at src/Form/Field/ImageField.php:77

    /**
     * Call intervention methods.
     *
     * @param string $method
     * @param array  $arguments
     *
     * @throws \Exception
     *
     * @return $this
     */
    public function __call($method, $arguments)
    {
        if (static::hasMacro($method)) {
            return $this;
        }

        if (!class_exists(ImageManagerStatic::class)) {
            throw new \Exception('To use image handling and manipulation, please install [intervention/image] first.');
        }

        $this->interventionCalls[] = [
            'method'    => $method,
            'arguments' => $arguments,
        ];

        return $this;
    }

    /**
     * Render a image form field.
     *
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function render()
    {
        $this->options(['allowedFileTypes' => ['image'], 'msgPlaceholder' => trans('admin.choose_image')]);

View on GitHub (pinned to 67c441eb78)

When it happens

Trigger: Thrown at src/Form/Field/ImageField.php:77 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of z-song/laravel-admin@67c441eb78 (2026-08-21). Data as JSON: /api/errors/c6bdabe3dfbf6cfc. Report an issue: GitHub.