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.
- Migration columns:
id, restaurant_id (Foreign key), number (1, 2, 3, etc.), extra_details (optional), timestamps, deleted_at
- Eloquent model (with the
SoftDeletes
trait) - Controller
- Form request (the table number should be unique for that restaurant)
- API resource class
- Factory
- Tests
Get hands-on with 1400+ tech skills courses.