Skip to content
On this page

Laravel

Flow

Request -> Server -> Response | |- Validation |-

keep .env.template up to date

keep migration alive

aware with lazy-loading

use env() only in config files

api response

File System

Model

  • stub | categorize methods
  • avoid using whereX magic method eg: where
  • avoid using scope
  • aware on appends, getXAttribute()
  • avoid using with = []
  • relationship method naming singular/plural
  • trait
    • firstOrThrow()

Controller

  • method that relevant in route

api response

JsonResource

overwatch panel

  • Telescope
  • Hubblescope
  • Swagger (in progress)

Released under the MIT License.