Skip to content

Instantly share code, notes, and snippets.

@JoseCage
Last active December 28, 2019 12:34
Show Gist options
  • Save JoseCage/a868888a2dd0d00306cc82b6360d838d to your computer and use it in GitHub Desktop.
Save JoseCage/a868888a2dd0d00306cc82b6360d838d to your computer and use it in GitHub Desktop.
courses
- id (integer)
- name (string)
- short_description (text)
- description (text)
- price (float)
- course_time (string)
- start_at (date)
- end_at (date)
- teacher_id (integer)
- schedule (string)
- link (string)
- level (integer)
- id (integer)
- name (string)
- description (text)
- id(integer)
- name (string)
- course_id (integer)
- id (integer)
- name (string)
- course_id (integer)
- id (integer)
- first_name (string)
- last_name (string)
- email (string)
- phone (string)
- id (integer)
- name (string)
- description (text)
- course_id (integer)
@JoseCage
Copy link
Author

Passos para criar as tabelas:

  • criar a migration:

php artisan make:migration create_courses_table

Ou criar com o Model:

php artisan make:model Course -m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment