-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Wayfinder Version
0.1.4
Laravel Version
11.44
PHP Version
8.3
Description
I really like the idea of Wayfinder and can clearly see the advantages compared to other packages. But at the moment at least for me Wayfinder is unusable due to a required database connection. I prefer to not have an active database connection while developing. Also since I'm creating a multi-tenancy app with a database per tenant the connection is dynamic for quite a lot of models.
- Would it be possible to use the model metadata that is similar to laravel-ide-helper instead of an actual database? Perhaps by setting a command flag or by using a config file you can switch between the two options;
- Would it be possible to fail early when there is no database connection. Now it takes quite a bit of time before an exception is thrown;
For example
/**
* Default User model
* @property int $id
*/
class User
/**
* Passport client
* @property-read string $id uuid
*/
class Client
/**
* Post model
* @property int $id
* @property string $title
* @property string $slug
*/
class Post extends Model
{
public function getRouteKeyName(): string
{
return 'slug';
}
}
Steps To Reproduce
iyashpal-headred, danielbrodin, Barbapapazes, Maarten-Dekker, megaarmos and 3 morejrd-lewis
Metadata
Metadata
Assignees
Labels
No labels