Skip to content

Conversation

@erikn69
Copy link
Contributor

@erikn69 erikn69 commented Nov 8, 2024

Illuminate/Database/Eloquent/Model.php#L615-L619

public function newInstance($attributes = [], $exists = false)
{
// This method just provides a convenient way for us to generate fresh model
// instances of this current model. It is particularly useful during the
// hydration of new objects via the Eloquent query builder instances.

@drbyte drbyte merged commit 8bb69d6 into spatie:main Nov 8, 2024
33 checks passed
@drbyte
Copy link
Collaborator

drbyte commented Nov 8, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can no longer delete permissions returned by "findByName" permission->assignRole after Permission::findOrCreate is not correctly assigning the roles

2 participants