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
150
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
An Introduction to Snapshot testing
freekmurze
0
210
Event Sourcing In Laravel
freekmurze
0
140
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
460
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
1
490
A practical look at multitenancy in Laravel
freekmurze
1
240
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
450
Highlights Flare codebase (Laracon online)
freekmurze
0
180
Introducing Mailcoach
freekmurze
1
380
Highlights from the Flare codebase (Full Stack Ghent)
freekmurze
0
420
Other Decks in Technology
See All in Technology
プログラマがオブジェクト指向しても幸せになれない理由
shirayanagiryuji
0
160
Laravel.shibuyaで改善してきた IRT勉強会の運営方法について / IRT Study Session Improved Through Laravel Shibuya
fendo181
0
120
要約 "Add Live Text interaction to your app"
ushisantoasobu
0
150
機械学習システムのアーキテクチャとデザインパターン
washizaki
1
660
俺の Laravel がこんなに速いわけがない! / My Laravel Too Fast
hanhan1978
0
110
LINEのB2Bプラットフォームにおけるトラブルシューティング2選
line_developers
PRO
4
310
Lessons Learned from Scaling Infrastructure as Code
joatmon08
0
800
The application of formal methods in Kafka reliability engineering
line_developers
PRO
1
210
Modern Android dependency injection
hugovisser
1
140
Retca Cloud
bau
0
550
Meet passkeys
satotakeshi
1
130
Camp Digital 2022: tailored advice
kyliehavelock
0
150
Featured
See All Featured
Navigating Team Friction
lara
175
11k
10 Git Anti Patterns You Should be Aware of
lemiorhan
638
52k
Happy Clients
brianwarren
89
5.6k
5 minutes of I Can Smell Your CMS
philhawksworth
196
18k
Building Applications with DynamoDB
mza
83
4.7k
Building Adaptive Systems
keathley
25
1.1k
What’s in a name? Adding method to the madness
productmarketing
11
1.6k
In The Pink: A Labor of Love
frogandcode
131
21k
Thoughts on Productivity
jonyablonski
43
2.3k
Why You Should Never Use an ORM
jnunemaker
PRO
47
7.6k
Embracing the Ebb and Flow
colly
73
3.4k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
15k
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