Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Highlights from the Flare codebase (laracon AU)
Search
Freek Van der Herten
October 31, 2019
Technology
0
360
Highlights from the Flare codebase (laracon AU)
Freek Van der Herten
October 31, 2019
Tweet
Share
More Decks by Freek Van der Herten
See All by Freek Van der Herten
Uncharted packages (ode aan de code)
freekmurze
0
36
Uncharted packages (Laravel Live Denmark)
freekmurze
0
230
I shall define this only once
freekmurze
0
450
An Introduction to Snapshot testing
freekmurze
0
520
Event Sourcing In Laravel
freekmurze
0
270
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
840
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
880
A practical look at multitenancy in Laravel
freekmurze
1
380
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
760
Other Decks in Technology
See All in Technology
AI時代の新規LLMプロダクト開発: Findy Insightsを3ヶ月で立ち上げた舞台裏と振り返り
dakuon
0
220
AWS re:Invent 2025で見たGrafana最新機能の紹介
hamadakoji
0
430
Reinforcement Fine-tuning 基礎〜実践まで
ch6noota
0
190
寫了幾年 Code,然後呢?軟體工程師必須重新認識的 DevOps
cheng_wei_chen
1
1.5k
ActiveJobUpdates
igaiga
1
140
ExpoのインダストリーブースでみたAWSが見せる製造業の未来
hamadakoji
0
150
文字列の並び順 / Unicode Collation
tmtms
3
610
20251219 OpenIDファウンデーション・ジャパン紹介 / OpenID Foundation Japan Intro
oidfj
0
180
Kiro を用いたペアプロのススメ
taikis
1
350
Jakarta Agentic AI Specification - Status and Future
reza_rahman
0
110
MariaDB Connector/C のcaching_sha2_passwordプラグインの仕様について
boro1234
0
920
[デモです] NotebookLM で作ったスライドの例
kongmingstrap
0
160
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
HDC tutorial
michielstock
0
260
Code Review Best Practice
trishagee
74
19k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
0
58
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
980
Practical Orchestrator
shlominoach
190
11k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
84
Marketing to machines
jonoalderson
1
4.3k
エンジニアに許された特別な時間の終わり
watany
105
220k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
Building the Perfect Custom Keyboard
takai
1
650
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Transcript
None
About me Freek Van der Herten Partner & developer at
Spatie @freekmurze freek.dev flareapp.io ohdear.app
Open source stats ± 250 packages on Packagist ± 50,000,000
total downloads ± 3 000,000 downloads a month spatie.be/open-source/packages
Highlights from the Flare codebase
A way to structure a large Laravel app
Take a look at the Flare codebase Not a sales
talk Techniques you can use in your own projects Opinionated
Short walkthrough of the UI Domains Inertia / React /
TypeScript
Let's take a look at Flare
Using domains
Using domains Term taken from DDD A sphere of knowledge
Grouping code Larger projects
Refactor to domains app/ ├── Models/ │ ├── User.php │
├── Team.php │ └── Project.php ├── Mails/ │ ├── Welcome.php │ ├── InvitedToTeam.php │ └── ApiKeyRegenerated.php └── Events/ ├── UserDeleted.php └── Project.php
Refactor to domains app/ └── Domain/ ├── Team └── Project
Show me the code
Front end
Front end “I strongly believe JavaScript is a requirement for
excellent user experiences. Not good experiences, excellent experiences.” —Seb
Front end: JavaScript Inertia Built by Jonathan Reinink Replace Blade
by React (or Vue or whatever) Makes server client communication seamless No full pages refreshes
public function index(Team $team) { return view('team.settings', collect('team')); }
public function index(Team $team) { return inertia()->render('team.settings', collect('team')); }
Show me!
In closing
Using domains stitcher.io/blog/laravel-beyond-crud-01-domain-oriented-laravel freek.dev/1371-refactoring-to-actions freek.dev/1433-supercharging-common-controllers
Front end inertiajs.com typescriptlang.org freek.dev/1391-how-to-handle-front-end-authorization-using- laravel-inertia-and-typescript
Thank you! speakerdeck.com/freekmurze/highlights-flare-codebase spatie.be/open-source freek.dev flareapp.io ohdear.app