Skip to content

Closure observers #652

@LordDeveloper

Description

@LordDeveloper

Hi, please add closure observer feature in masonite-orm:)
https://laravel.com/docs/9.x/eloquent#events-using-closures

def boot(self):
        self.creating(lambda m: print(m.serialize())

And in_random_order method for randomize query result:
https://laravel.com/docs/9.x/queries#random-ordering

Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    easyThese issues are geared for people who have not yet contributed to this project yetenhancementA feature that exists, works as intended but needs to be improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions