Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php artisan route:list #50595

Closed
satrianovember opened this issue Mar 15, 2024 · 5 comments
Closed

php artisan route:list #50595

satrianovember opened this issue Mar 15, 2024 · 5 comments

Comments

@satrianovember
Copy link

Laravel Version

11.x

PHP Version

8.3.3

Database Driver & Version

MySQL 8.0.30 winx64

Description

Array to string conversion

at vendor\laravel\framework\src\Illuminate\Routing\ResourceRegistrar.php:616
612▕ protected function getResourceAction($resource, $controller, $method, $options)
613▕ {
614▕ $name = $this->getResourceRouteName($resource, $method, $options);
615▕
➜ 616▕ $action = ['as' => $name, 'uses' => $controller.'@'.$method];
617▕
618▕ if (isset($options['middleware'])) {
619▕ $action['middleware'] = $options['middleware'];
620▕ }

1 vendor\laravel\framework\src\Illuminate\Routing\ResourceRegistrar.php:616
Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap{closure}(}("Array to string conversion", "C:\laragon\www\rumahta\vendor\laravel\framework\src\Illuminate\utRouting\ResourceRegistrar.php")

2 vendor\laravel\framework\src\Illuminate\Routing\ResourceRegistrar.php:275
Illuminate\Routing\ResourceRegistrar::getResourceAction("p3ke", "index", [])

Steps To Reproduce

image

@devajmeireles
Copy link
Contributor

Impossible to identify the cause without description, details, or steps to reproduce the problem. This issue will probably be closed!

@buismaarten
Copy link
Contributor

Submit your code, since your code will probably be the problem here.

@crynobone
Copy link
Member

Hey there, thanks for reporting this issue.

We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here?

Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.

laravel new bug-report --github="--public"

Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue.

Thanks!

@toyi
Copy link

toyi commented Mar 19, 2024

Most probable cause, something is wrong within one of your route files, we can help if you post them here.

@driesvints
Copy link
Member

Feel free to re-open this when you have a clear way to reproduce. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants