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 (Full Stack Ghent)
Freek Van der Herten
November 13, 2019
Programming
0
450
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
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 Programming
See All in Programming
Showkase、Paparazziを用いたビジュアルリグレッションテストの導入にチャレンジした話 / MoT TechTalk #15
mot_techtalk
0
110
コンピュータビジョンセミナー2 / computer_vision_seminar_libSGM
fixstars
0
320
Enumを自動で網羅的にテストしてみた
estie
0
1.3k
Excelの助けを借りて楽にシナリオを作ろう
rpa_niiyama
0
290
CDKでValidationする本当の方法 / cdk-validation
gotok365
1
200
Swift Concurrency in GoodNotes
inamiy
4
1.3k
jq at the Shortcuts
cockscomb
1
420
AWSとCPUのムフフな関係
cmdemura
0
470
Zynq MP SoC で楽しむエッジコンピューティング ~RTLプログラミングのススメ~
ryuz88
0
350
OIDC仕様に準拠した Makuake ID連携基盤構築の裏側
ymtdzzz
0
540
Cloudflare WorkersでGoを動かすライブラリを作っている話
syumai
1
320
Prácticas de Seguridad en Kubernetes
pablokbs
0
130
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
396
63k
A Modern Web Designer's Workflow
chriscoyier
689
180k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
7
570
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
152
13k
Side Projects
sachag
451
37k
The Pragmatic Product Professional
lauravandoore
21
3.4k
The Invisible Customer
myddelton
113
12k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
351
21k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
657
120k
WebSockets: Embracing the real-time Web
robhawkes
58
6k
JazzCon 2018 Closing Keynote - Leadership for the Reluctant Leader
reverentgeek
175
9.1k
Producing Creativity
orderedlist
PRO
335
38k
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