---
title: "Laravel 5.0 - Events & Handlers"
url: https://daily.dev/posts/laravel-5-0---events-handlers-yugsh5hx6
source_url: https://mattstauffer.com/blog/laravel-5.0-events-and-handlers
type: article
source: "Matt Stauffer"
published: 2026-05-31T07:50:52.613Z
updated: 2026-05-31T09:16:43.706Z
tags: ["architecture", "php", "laravel", "dependency-injection"]
reading_time: 5
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel 5.0 - Events & Handlers

**[Matt Stauffer](https://daily.dev/sources/mattstauffer)** · 5 min read · 0 upvotes · 0 comments

## Summary

Laravel 5.0 upgrades its eventing system from string-based event names to PHP objects, mirroring the command/handler pattern. Using artisan commands, you generate an event class and a corresponding handler class, bind them in EventServiceProvider, then fire events with Event::fire(new ThingWasDone()). Handlers support dependency injection, queue integration via ShouldBeQueued, and Eloquent model serialization via the SerializesModels trait.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://mattstauffer.com/blog/laravel-5.0-events-and-handlers>

## Similar posts on daily.dev

- [Beyond Fat Controllers: Mastering Event-Driven Decoupling in Laravel](https://daily.dev/posts/beyond-fat-controllers-mastering-event-driven-decoupling-in-laravel-rkl3ao0vg) · CodeCraft Diary · 1 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel), [#dependency-injection](https://daily.dev/tags/dependency-injection)

[View this post on daily.dev](https://daily.dev/posts/laravel-5-0---events-handlers-yugsh5hx6)
