Php Laravel Execute Function Before Query Is Fired

Php Laravel Execute Function Before Query Is Fired