Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Highlights from the Flare codebase (laracon AU)
Freek Van der Herten
October 31, 2019
Technology
0
180
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
I shall define this only once
freekmurze
0
240
An Introduction to Snapshot testing
freekmurze
0
250
Event Sourcing In Laravel
freekmurze
0
160
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
530
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
540
A practical look at multitenancy in Laravel
freekmurze
1
250
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
500
Highlights Flare codebase (Laracon online)
freekmurze
0
220
Introducing Mailcoach
freekmurze
1
420
Other Decks in Technology
See All in Technology
Hatena Engineer Seminar #23 「チームとプロダクトを育てる Mackerel 開発合宿」
arthur1
0
460
SSMパラメーターストアでクロススタック参照の罠を回避する
shuyakinjo
0
100
ラズパイとGASで加湿器の消し忘れをLINEでリマインド&操作
minako__ph
0
150
Periodic Multi-Agent Path Planning
hziwara
0
110
OpenShiftでスポットVMを使おう.pdf
jpishikawa
1
290
PCI DSS に準拠したシステム開発
yutadayo
0
310
AWS Cloud Forensics & Incident Response
e11i0t_4lders0n
0
280
グローバルチームことはじめ / Bootstrapping a global team
tasshi
1
690
金属加工屋の営業マンがSTマイクロで・・・
usashirou
0
160
WebLogic Server for OCI 概要
oracle4engineer
PRO
3
880
ROS_Japan_UG_#49_LT
maeharakeisuke
0
220
NGINXENG JP#2 - 3-NGINX Plus・プロダクトのアップデート
hiropo20
0
240
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
396
63k
Embracing the Ebb and Flow
colly
75
3.6k
Adopting Sorbet at Scale
ufuk
65
7.8k
Teambox: Starting and Learning
jrom
124
7.9k
How to name files
jennybc
47
73k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1.1M
5 minutes of I Can Smell Your CMS
philhawksworth
198
18k
VelocityConf: Rendering Performance Case Studies
addyosmani
317
22k
Why Our Code Smells
bkeepers
PRO
326
55k
The Art of Programming - Codeland 2020
erikaheidi
35
11k
Keith and Marios Guide to Fast Websites
keithpitt
407
21k
We Have a Design System, Now What?
morganepeng
37
5.9k
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