Some general information regarding the library
General information regarding everything under ShipSaaS Ready
OK: 200
Created: 201
Validation errors: 422
Generic errors: 400
id will never be exposed to the client's side
id
created_at & updated_at will have this format: Y-m-d H:i:s
created_at
updated_at
Y-m-d H:i:s
For index endpoints that use pagination mode, it would return you the pagination info from Laravel, eg per_page, total,...
index
ShipSaaS Ready is using the app()->getLocale() and then returning you the translated text.
app()->getLocale()
Remember to do the app()->setLocale(xx) when changing the language.
app()->setLocale(xx)
We treat every data update as Migration because:
Easier. For seeders, we would add a lot of ifs just not to insert the duplicated data.
ifs
It will be run once when you hit the php artisan migrate
php artisan migrate
There will be some possibility that we would introduce more migrations to fix some data. We won't use seeders to fix data.
Last updated 3 years ago