Refactor to domains
app/
└── Domain/
├── Team
└── Project
Slide 16
Slide 16 text
Show me the code
Slide 17
Slide 17 text
Front end
Slide 18
Slide 18 text
Front end
“I strongly believe JavaScript is a requirement for excellent user
experiences. Not good experiences, excellent experiences.”
—Seb
Slide 19
Slide 19 text
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
Slide 20
Slide 20 text
public function index(Team $team)
{
return view('team.settings', collect('team'));
}
Slide 21
Slide 21 text
public function index(Team $team)
{
return inertia()->render('team.settings', collect('team'));
}
Slide 22
Slide 22 text
Show me the code!
Slide 23
Slide 23 text
In closing
Slide 24
Slide 24 text
Using domains
stitcher.io/blog/laravel-beyond-crud-01-domain-oriented-laravel
freek.dev/1371-refactoring-to-actions
freek.dev/1433-supercharging-common-controllers
Slide 25
Slide 25 text
Front end
inertiajs.com
typescriptlang.org
freek.dev/1391-how-to-handle-front-end-authorization-using-
laravel-inertia-and-typescript