Closed MGeurts closed 8 months ago
This is unrelated to this package.
The issue is related to laravel ui package, i recommend using Laravel Breeze or Jetstream instead
This legacy package is a very simple authentication scaffolding built on the Bootstrap CSS framework. While it continues to work with the latest version of Laravel, you should consider using Laravel Breeze for new projects. Or, for something more robust, consider Laravel Jetstream.
The laravel ui package is still supported and needed if you want a Laravel application with authentication and need to use bootstrap instead of tailwind.
Strange that this error is unrelated to LogViewer, because my laravel 11 application works just fine, as long as I don't install LogViewer.
I will try the new route registration and see if it solves the issue for you
@MGeurts Can you try the latest release?
@arcanedev-maroc Works like a charm. Thank you.
Description:
Erro installing in fresh Laravel 11 project
Steps To Reproduce:
`composer require arcanedev/log-viewer
./composer.json has been updated Running composer update arcanedev/log-viewer Loading composer repositories with package information Updating dependencies Lock file operations: 2 installs, 0 updates, 0 removals
Installing arcanedev/log-viewer (11.0.0): Extracting archive Generating optimized autoload files
InvalidArgumentException
Attribute [auth] does not exist.
at vendor\laravel\framework\src\Illuminate\Routing\RouteRegistrar.php:112 108▕ */ 109▕ public function attribute($key, $value) 110▕ { 111▕ if (! in_array($key, $this->allowedAttributes)) { ➜ 112▕ throw new InvalidArgumentException("Attribute [{$key}] does not exist."); 113▕ } 114▕ 115▕ if ($key === 'middleware') { 116▕ foreach ($value as $index => $middleware) {
1 vendor\laravel\framework\src\Illuminate\Routing\Router.php:1502 Illuminate\Routing\RouteRegistrar::attribute("auth", [])
2 vendor\laravel\framework\src\Illuminate\Support\Facades\Auth.php:96 Illuminate\Routing\Router::__call("auth")
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1`