Skip to content

sarancruzer/lumen-jwt

Repository files navigation

lumen-jwt

JWT authentication for Lumen 5.6

Database basic

Schema Builder

Eloquent ORM

migration

  • php artisan make:migration create_products_table

change tables structures with migration without losing data?

  • php artisan migrate:refresh
  • php artisan make:migration add_paid_to_users --table="users"

To check db values

  • php artisan tinker

Merge Json/Resource::with() when using a collection in an API Resource