This should point you in the right direction - https://laravel.com/docs/5.2/events
You can then use the php artisan event:generate command if you choose to use the EventServiceProvider method.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to create an event that will notify the user when someone placed higher bid on a product than the user!
How to write it ?? I have this function in my User.php that will checks if user is placed bid on a product:
public function checked($auctionId)
{
return $this->bidCheck()->where('product_id', $auctionId)->count() > 0;
}
Can someone write me that event ? Please!
Please or to participate in this conversation.