F
Filament9mo ago
Lim

filament:install --panels WARN

Hi everyone Im new to filament and I am encountering this error when making a filament user
Filament has not been installed yet: php artisan filament:install --panels
Filament has not been installed yet: php artisan filament:install --panels
I did install
php artisan filament:install --panels
php artisan filament:install --panels
and got a WARN
We've attempted to register the AdminPanelProvider in your [config/app.php] file as a service provider. If you get an error while trying to access your panel then this process has probably failed. You can manually register the service provider by adding it to the [providers] array.
We've attempted to register the AdminPanelProvider in your [config/app.php] file as a service provider. If you get an error while trying to access your panel then this process has probably failed. You can manually register the service provider by adding it to the [providers] array.
am I doing something wrong?
Solution:
Full credit to @awcodes for the answer (I'm just copy/pasting it from the chat channel for posterity's sake): "Add the AdminServiceProvider to your providers array in config/app.php. It tries to do it automatically, but for some reason in your app it couldn’t." Link to the answer - https://discord.com/channels/883083792112300104/956270111176679516/1214357835174117449...
Jump to solution
2 Replies
Solution
Alex Six
Alex Six9mo ago
Full credit to @awcodes for the answer (I'm just copy/pasting it from the chat channel for posterity's sake): "Add the AdminServiceProvider to your providers array in config/app.php. It tries to do it automatically, but for some reason in your app it couldn’t." Link to the answer - https://discord.com/channels/883083792112300104/956270111176679516/1214357835174117449
Lim
LimOP9mo ago
If
AdminServiceProvider
AdminServiceProvider
is already and and still encountering some errors when creating a filament user Try the fix below: From the
AdminServiceProvider->panel()
AdminServiceProvider->panel()
Add the
default()
default()
Here is a sample code
public function panel(Panel $panel): Panel
{
return $panel
->default() //added this
->registration()
->login() //add this if there is an error related to Route[login]
->id('admin')
->path('admin')
->colors([
'primary' => Color::Amber,
])
...
}
public function panel(Panel $panel): Panel
{
return $panel
->default() //added this
->registration()
->login() //add this if there is an error related to Route[login]
->id('admin')
->path('admin')
->colors([
'primary' => Color::Amber,
])
...
}
Thank you
Want results from more Discord servers?
Add your server