Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for overriding the boot method #14

Closed
iSWORD opened this issue Jan 17, 2018 · 1 comment
Closed

Add docs for overriding the boot method #14

iSWORD opened this issue Jan 17, 2018 · 1 comment

Comments

@iSWORD
Copy link

iSWORD commented Jan 17, 2018

Hi, thanks for the easy to use package!

I had to modify the boot method in one of my models to add global scopes but then I found out that Uuids were no longer being generated, so I solved it like this:

use Uuids {
    boot as protected uuid_boot;
}

instead of:

use Uuids;

then in the modified boot method:

protected static function boot()
{
    parent::boot();
    self::uuid_boot();

    // static::addGlobalScope(...);
}

Please add this somewhere in the readme/docs/whatever. Thank you!

@EmadAdly
Copy link
Owner

I'd accept a PR with tests that fixes this.

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

No branches or pull requests

2 participants