Manage the Tables

Practice the CRUD coding functionality once more and learn how to conveniently manage the state of table records.

Time to go on your own

We know you are eager to jump in and start coding new modules yourself, and the time has come. The CRUD of tables is similar to that of menu items. Please take the following steps to add the API endpoints that allow users to add, update, and archive tables.

  1. Migration columns: id, restaurant_id (Foreign key), number (1, 2, 3, etc.), extra_details (optional), timestamps, deleted_at
  2. Eloquent model (with the SoftDeletes trait)
  3. Controller
  4. Form request (the table number should be unique for that restaurant)
  5. API resource class
  6. Factory
  7. Tests

Get hands-on with 1400+ tech skills courses.