trait WithoutModelEvents (View source)

Methods

callable
withoutModelEvents(callable $callback)

Prevent model events from being dispatched by the given callback.

Details

callable withoutModelEvents(callable $callback)

Prevent model events from being dispatched by the given callback.

Parameters

callable $callback

Return Value

callable

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.