Skip to content

Undocumented requirement on Laravel 9.x #21

@peters-cmc

Description

@peters-cmc

Running legacy Laravel v8 application, Filament v2, Laravel Auditing v13; This plugin can be installed and configured correctly, and displays the Audit tab for the resource, however selecting the tab throws an exception.

Method Illuminate\Support\Arr::map does not exist.

From the Laravel documentation Arr::map was not introduced until Laravel 9 (https://laravel.com/docs/9.x/helpers#method-array-map).

AuditsRelationManager.php references this method:

protected static function extraColumns()
    {
        return Arr::map(config('filament-auditing.audits_extend'), function ($buildParameters, $columnName) {
            return collect($buildParameters)->pipeThrough([
            // etc

Auditing v13 looks to support Laravel v7 onwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions