Open simonankele opened 2 weeks ago
I hadn't considered this possibility, I'll see how to manage this aspect, thanks for the feedback!
Hello,
i have also empty types, when i have dynamic table names like:
public function scopeSeason(Builder $builder, int $season): Builder
{
$this->setTable('Prefix'.$season);
return $builder->setModel(model: $this);
}
Perhaps, someone has a better solution to define dynamic tables.
This is a very different problem from the first, so I'll see how to handle this one later. But yes, I had never thought of using a scope
in this way.
I use show:model
artisan command, so if Laravel can't see your dynamic table, this module can't see your dynamic table.
This is a very different problem from the first, so I'll see how to handle this one later. But yes, I had never thought of using a
scope
in this way.I use
show:model
artisan command, so if Laravel can't see your dynamic table, this module can't see your dynamic table.
Don't know how this should work, because the dynamic table name only takes effect when the scope method is called.
What happened?
I have three databases, which I have specified separately as connections in database.php.
php artisan model:show
specifies the database, which is the connection. This means that the database is unfortunately defined as a connection in the SchemaModel class$data['database']
.I have corrected this for myself as follows (SchemaModel):
How to reproduce the bug
php artisan typescriptable
Package Version
3.1
PHP Version
8.3
Which operating systems does with happen with?
Linux
Notes
Sorry for bad bug report - it's my first ;-)