dev-partners / laravel-nova-auditable-log

A Laravel Nova resource tool for visualizing the audit log created by the Laravel Auditing package.
51 stars 22 forks source link

After install: BadMethodCallException Method translations does not exist. #14

Open floatnz opened 4 years ago

floatnz commented 4 years ago

After install composer require devpartners/auditable-log

BadMethodCallException Method translations does not exist: Screenshot from 2020-04-16 21-41-08

Tried clearing caches with no change:

php artisan cache:clear
php artisan config:clear
php artisan view:clear

composer.json:

    "require": {
        "php": "^7.1.3",
        "barryvdh/laravel-dompdf": "^0.8.5",
        "bugsnag/bugsnag-laravel": "^2.0",
        "calcinai/xero-php": "^1.8",
        "devpartners/auditable-log": "^1.0",
        "fideloper/proxy": "^4.0",
        "florianv/laravel-swap": "^2.1",
        "guzzlehttp/guzzle": "^6.4",
        "laravel/framework": "5.8.*",
        "laravel/nova": "*",
        "laravel/tinker": "^1.0",
        "maatwebsite/laravel-nova-excel": "^1.1",
        "nyholm/psr7": "^1.2",
        "owen-it/laravel-auditing": "^10.0",
        "php-http/curl-client": "^2.1",
        "php-http/message": "^1.8",
        "phpclassic/php-shopify": "^1.1",
        "phpmailer/phpmailer": "^6.1",
        "symfony/translation": "4.3.8",
        "ums/admin": "*",
        "ums/backlog": "*",
        "ums/docs": "*",
        "ums/supplier": "*",
        "unified/ums": "*"
    },
recycledbeans commented 4 years ago

Hey @floatnz what version of Laravel Nova do you have installed?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

man-dwarf commented 4 years ago

Hey, I'm experiencing the same issue. I'm running laravel/nova:dev-master

recycledbeans commented 4 years ago

Hey @man-dwarf, thanks for reporting. Are you using Laravel 5.8 as well?

man-dwarf commented 4 years ago

Version: 5.8.36

When I remove this section from vendor/devpartners/auditable-log/src/ToolServiceProvider.php the error disappears.

             Nova::translations([
                'Audit Log'      => __('Audit Log'),
                'User'           => __('User'),
                'Event'          => __('Event'),
                'Date/Time'      => __('Date/Time'),
                'Old Values'     => __('Old Values'),
                'New Values'     => __('New Values'),
                'console'        => __('console'),
                'Previous'       => __('Previous'),
                'Next'           => __('Next'),
                'View Audit Log' => __('View Audit Log'),
                'Restore audit'  => __('Restore audit'),
                'Field'          => __('Field'),
                'Current'        => __('Current'),
                'Restore to'     => __('Restore to'),
                'No changes'     => __('No changes'),
                'Cancel'         => __('Cancel'),
                'Restore'        => __('Restore'),
            ]);
recycledbeans commented 4 years ago

Okay, thank you. This information is very helpful.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.