Intro
Having years of experience with Laravel. I am outing how i work with laravel for projects.
Outline
Routes
Helpers
Artisan Commands
Actions
Processor
Services
Queue
Exceptions
Unit Test
Package
Automate
Bonus (VS Code Extensions)
Based on the given path, get all files in the path, and include the file as long it’s not the current file.
Routes
Load all the PHP files (routes) in the given path.
Helpers
Just another few functions
Instruct Composer to Autoload the helper file.
Load all PHP files in the current directory.
Standardise the select options listing and support multilingual.
Artisan Command
Who needs to retype over and over again?
Action
Minimalist handling of a process.
A set of common actions. Let’s go with Menu.php Action.
Processor
It’s just a separation of kitchen and dining table.
Services
Where you need to call third-party Web APIs.
A Laravel / PHP package that helps you build beautiful API integrations and SDKs.
Queue
You don’t want to block your user’s interaction with your application.
Who needs to write a bunch of codes here?
KISS, Keep it simple Sahabat
Exceptions
Be more verbose about what’s happening when something failed.
Unit Tests
Scariest part.LOL
Packages
Common packages use
Automate
Improve Developer Experience, DX
Automate code fixing
Static Analysis
Run Unit Test
Update change log on a new release.