but make is returning "default". By the way, this collection is key=>class. No need to first, but a simple get().
Or need to reverse the collection key/value.
public function make(string $theme): Theme
{
$name = $this->collection->get($theme);
if ($name) {
return new $name;
}
}
Between the __construct & make, the collection changed :
What happened?
Hello,
I think, we got a regression.
On class Themes, the collection definition is Name=>class
but make is returning "default". By the way, this collection is key=>class. No need to first, but a simple get(). Or need to reverse the collection key/value.
Between the __construct & make, the collection changed :
How to reproduce the bug
Install
Package Version
v3.0.10
PHP Version
8.2.4
Laravel Version
v3.0.39
Notes
No response