Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Highlights from the Flare codebase (Full Stack Ghent)
Search
Freek Van der Herten
November 13, 2019
Programming
0
530
Highlights from the Flare codebase (Full Stack Ghent)
Freek Van der Herten
November 13, 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
320
An Introduction to Snapshot testing
freekmurze
0
350
Event Sourcing In Laravel
freekmurze
0
190
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
660
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
680
A practical look at multitenancy in Laravel
freekmurze
1
280
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
610
Highlights Flare codebase (Laracon online)
freekmurze
0
330
Introducing Mailcoach
freekmurze
1
510
Other Decks in Programming
See All in Programming
syndicationd LT
ymgyt
0
110
document.write再考
brn
5
1.9k
上手な探索的テストとその上達方法について
matsu802
1
430
「Hono遍歴」と「HonoXでブログ作成」
yasu551
0
170
Reckoner の Scala プロジェクトにおける オブザーバビリティの取り組み / Observability Initiatives in Reckoner's Scala Project
nomadblacky
0
820
Kotlinを用いたDSL的な設計手法と使用上の注意
kohii00
2
490
「プログラマーのためのCPU入門」は入り口として丁度よい!
forrep
25
22k
プログラミングを楽しもう! / Enjoy Programming
chobishiba
1
680
OpCode目線で眺める PHPコードのカバレッジ
o0h
PRO
2
470
BuefyのMaintainerを引き継いだ件
kikuomax
0
360
『データ可視化学入門』をPythonからRに翻訳した話(増強版)
bob3bob3
0
280
SmartHRにおけるプロダクトエンジニア/product_engineer_in_smarthr_20240227
saitoryc
5
180
Featured
See All Featured
Done Done
chrislema
178
15k
Become a Pro
speakerdeck
PRO
8
4.2k
GraphQLの誤解/rethinking-graphql
sonatard
48
9.1k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
113
18k
Visualization
eitanlees
135
14k
No one is an island. Learnings from fostering a developers community.
thoeni
14
2k
We Have a Design System, Now What?
morganepeng
42
6.7k
The MySQL Ecosystem @ GitHub 2015
samlambert
242
12k
Keith and Marios Guide to Fast Websites
keithpitt
407
22k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
272
12k
KATA
mclloyd
14
11k
Building Flexible Design Systems
yeseniaperezcruz
317
37k
Transcript
None
About me Freek Van der Herten Partner & developer at
Spatie @freekmurze freek.dev mailcoach.app flareapp.io ohdear.app
Open source stats ± 250 packages on Packagist ± 3,500,000
downloads a month ± 50,000,000 total downloads spatie.be/open-source/packages
spatie.be/open-source
spatie.be/open-source/postcards
Our address SPATIE Samberstraat 69D BE-2060 Antwerp Belgium Europe
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 the code!
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-fullstack spatie.be/open-source freek.dev mailcoach.app flareapp.io ohdear.app