Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fajarwz/blog-laravel-observers-events

An implementation of Observer Pattern in Laravel from fajarwz.com/blog
https://github.com/fajarwz/blog-laravel-observers-events

design-patterns example-project laravel laravel-events laravel-observers observer-pattern php

Last synced: 21 days ago
JSON representation

An implementation of Observer Pattern in Laravel from fajarwz.com/blog

Awesome Lists containing this project

README

        

# Observer Pattern in Laravel With Observers and Events
This is an implementation of Observer Pattern in Laravel with Observers and Events. A blog about this can be found here: [Observer Pattern in Laravel With Observers and Events | Fajarwz](https://fajarwz.com/blog/observer-pattern-in-laravel-with-observers-and-events/).

## Installation

### Composer Packages
```
composer install
```

## Configuration

### Create `.env` file from `.env.example`
Create `.env` from `.env.example` and customize it based on your environment.
```
cp .env.example .env
```

### Generate Laravel App Key
```
php artisan key:generate
```

### Migrate the Database Migration
```
php artisan migrate --seed
```

## Run the App
Run local web server
```
php artisan serve
```