filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
18.72k stars 2.91k forks source link

Unable to install #65

Closed tanthammar closed 3 years ago

tanthammar commented 3 years ago

Describe the bug Following the "Getting Started" guide, when I get to the third step I get an error.

To reproduce did this:

composer require filament/filament
php artisan migrate

Then this, but get an error: Route [filament.auth.login] not defined

php artisan make:filament-user

I enter name, password and "yes" to create an administrator user.

Screenshots

Context Fresh Laravel 8 Jetstream with Teams and Livewire. php 8

tplessis commented 3 years ago

Same here. Laravel 8, PHP 7.4.

Install Issue

tanthammar commented 3 years ago

I did a fresh installation of w Laravel 8 Jetstream + teams. it worked. Will try to figure out what Filament doesn't like with my boilerplate.

tplessis commented 3 years ago

After running a php artisan route:clear before installation, problem solved. 👍

tanthammar commented 3 years ago

I found the culprit in my boilerplate.

Collided with my custom config/nova->path and filament default url. Both were set to "admin".

A humble suggestion would be to add a check to the Filament RouteServiceProvider.

Like

// if route exists
// throw an error to console
// else 
// register the routes to the app...

Guess others might have an existing admin route when installing the package.

ariustigger commented 2 years ago

how did you solve that, I already got installed nova now I want also to add filament...? thanks in advance

knowsarzehmeh commented 1 year ago

how did you solve that, I already got installed nova now I want also to add filament...? thanks in advance

i'm just digging into filament and i ran into the same issue, filament path conflicts with what i have in nova config, so i will suggest you change nova.path in config to something different from what filament uses or change the filament.path in the config too

ivnlabs commented 1 year ago

check this link https://laracasts.com/discuss/channels/code-review/install-nova-and-filament