Creating models in Laravel Nova

From Wiki | Valse Technologies
Revision as of 04:08, 24 October 2019 by Salwani.nur (talk | contribs) (Created page with "1. Using composer, type 'php artisan make:model Model' - Model are named after table in database in singular term. - Eg. users(table) --> User.php (models) - Folder:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

1. Using composer, type 'php artisan make:model Model'

  - Model are named after table in database in singular term. 
  - Eg. users(table) --> User.php (models)
  - Folder: app/Model.php

2. Create the same Model.php in app/Nova