Scaffold
Table name
Table name can't be empty!
Model
Controller
Create migration
Create model
Create controller
Run migrate
Create menu item
Fields
(Note, id is already included in field list)
Order
Field name
Type
Nullable
Key
Default value
Comment
Action
@if(old('fields')) @foreach(old('fields') as $index => $field)
@foreach($dbTypes as $type)
{{$type}}
@endforeach
{{--
Primary
--}}
NULL
Unique
Index
remove
@endforeach @else
@foreach($dbTypes as $type)
{{$type}}
@endforeach
{{--
Primary
--}}
NULL
Unique
Index
remove
@endif
Add field
Created_at & Updated_at
Soft deletes
Primary key
{{ csrf_field() }}
@foreach($dbTypes as $type)
{{$type}}
@endforeach
NULL
Unique
Index
remove
HasOne
BelongsTo
HasMany
BelongsToMany
remove