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

3.3.16 Method Illuminate\Support\Stringable::value does not exist on php artisan backpack:build #196

Closed
tabacitu opened this issue Jul 16, 2023 · 3 comments
Assignees

Comments

@tabacitu
Copy link
Member

tabacitu commented Jul 16, 2023

backpack/crud: 5.6.1
backpack/editable-columns: 2.1.5
backpack/generators: 3.3.16
backpack/pro: 1.6.6

php artisan backpack:build

BadMethodCallException
Method Illuminate\Support\Stringable::value does not exist.
at \vendor\laravel\framework\src\Il
luminate\Macroable\Traits\Macroable.php:113
109▕ */
110▕ public function __call($method, $parameters)
111▕ {
112▕ if (! static::hasMacro($method)) {
➜ 113▕ throw new BadMethodCallException(sprintf(
114▕ 'Method %s::%s does not exist.', static::class, $method
115▕ ));
116▕ }
117▕
1 \vendor\backpack\generators\src
\Console\Commands\BuildBackpackCommand.php:86
Illuminate\Support\Stringable::__call("value", [])

2 \vendor\backpack\generators\src
\Console\Commands\BuildBackpackCommand.php:66
Backpack\Generators\Console\Commands\BuildBackpackCommand::getModels...

Originally posted by @blessen131 in #185 (comment)

@tabacitu
Copy link
Member Author

@blessen131 please keep in mind that we've already launched Backpack v6, and that does not have this bug. If you're starting a new project, I heavily recommend you use v6.

I will ask @pxpm to take a quick look at this nonetheless, and if it's an easy fix, fix it. But officially we are no longer pushing bug fixes to Backpack v5, only security fixes - https://github.com/Laravel-Backpack/CRUD/blob/main/SECURITY.md

@tabacitu tabacitu changed the title 3.3.16 Method Illuminate\Support\Stringable::value does not exist. 3.3.16 Method Illuminate\Support\Stringable::value does not exist on php artisan backpack:build Jul 16, 2023
@blessen131
Copy link

I updated, $namespace = (string)$fileContent->match('/namespace (.*);/'); &
$classname = (string)$fileContent->match('/class (\w+)/'); in 'vendor/backpack/generators/src/Console/Commands/BuildBackpackCommand.php' that fix my error/issue

@tabacitu
Copy link
Member Author

Fixed in #198 - a composer update should fix it for you @blessen131 . Let us know if that's not the case and we'll reopen. Cheers!

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

No branches or pull requests

3 participants