Method $painel->brandLogo dosn't work

How can I change the brand?
No description
No description
No description
Solution:
composer update?
Jump to solution
10 Replies
Solution
LeandroFerreira
LeandroFerreira15mo ago
composer update?
Leandro Tavares
Leandro TavaresOP15mo ago
It's work! Thanks
han__hyung
han__hyung13mo ago
composer update Loading composer repositories with package information Updating dependencies Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Nothing to install, update or remove Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi
BadMethodCallException Method Filament\Panel::brandLogo does not exist. at vendor\filament\support\src\Concerns\Macroable.php:72 68▕ { 69▕ $macro = static::getMacro($method); 70▕ 71▕ if ($macro === null) { ➜ 72▕ throw new BadMethodCallException(sprintf( 73▕ 'Method %s::%s does not exist.', 74▕ static::class, 75▕ $method, 76▕ )); i Bad Method Call: Did you mean Filament\Panel::brandName() ? 1 app\Providers\Filament\AdminPanelProvider.php:35 Filament\Support\Components\Component::__call("brandLogo") 2 vendor\filament\filament\src\PanelProvider.php:16 App\Providers\Filament\AdminPanelProvider::panel(Object(Filament\Panel)) Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 error my code
Shaung Bhone
Shaung Bhone13mo ago
comment this brandLogo() line and update the composer.
han__hyung
han__hyung13mo ago
No description
Shaung Bhone
Shaung Bhone13mo ago
delete lock file and update?
han__hyung
han__hyung13mo ago
composer update
$ composer update
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

BadMethodCallException

Method Filament\Panel::brandLogo does not exist.

at vendor\filament\support\src\Concerns\Macroable.php:72
68▕ {
69▕ $macro = static::getMacro($method);
70▕
71▕ if ($macro === null) {
➜ 72▕ throw new BadMethodCallException(sprintf(
73▕ 'Method %s::%s does not exist.',
74▕ static::class,
75▕ $method,
76▕ ));

i Bad Method Call: Did you mean Filament\Panel::brandName() ?

1 app\Providers\Filament\AdminPanelProvider.php:35
Filament\Support\Components\Component::__call("brandLogo")

2 vendor\filament\filament\src\PanelProvider.php:16
App\Providers\Filament\AdminPanelProvider::panel(Object(Filament\Panel))

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
$ composer update
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

BadMethodCallException

Method Filament\Panel::brandLogo does not exist.

at vendor\filament\support\src\Concerns\Macroable.php:72
68▕ {
69▕ $macro = static::getMacro($method);
70▕
71▕ if ($macro === null) {
➜ 72▕ throw new BadMethodCallException(sprintf(
73▕ 'Method %s::%s does not exist.',
74▕ static::class,
75▕ $method,
76▕ ));

i Bad Method Call: Did you mean Filament\Panel::brandName() ?

1 app\Providers\Filament\AdminPanelProvider.php:35
Filament\Support\Components\Component::__call("brandLogo")

2 vendor\filament\filament\src\PanelProvider.php:16
App\Providers\Filament\AdminPanelProvider::panel(Object(Filament\Panel))

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Shaung Bhone
Shaung Bhone13mo ago
what's your filament version?
"filament/filament": "^3.0.91"
"filament/filament": "^3.0.91"
That's mine
han__hyung
han__hyung13mo ago
my filament version
"require": {
"php": "^8.1",
"filament/filament": "3.0.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8"
},
"require": {
"php": "^8.1",
"filament/filament": "3.0.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8"
},
it's working, thank you very much
Dennis Koch
Dennis Koch13mo ago
You limited yourself to the first version of v3 with that. Look up how composer constraints work.
Want results from more Discord servers?
Add your server