Skip to content

Commit 93499a4

Browse files
authored
Re-Sort Create functions
### issue creating controller before model ### fix I believe in Laravel the standard order is: 1. migrations 2. models 3. controllers 4. crud-request 5. routes
1 parent 0c72a89 commit 93499a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Console/Commands/CrudBackpackCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ public function handle()
3333
$nameKebab = Str::kebab($nameTitle);
3434
$namePlural = ucfirst(str_replace('-', ' ', Str::plural($nameKebab)));
3535

36-
// Create the CRUD Controller and show output
37-
$this->call('backpack:crud-controller', ['name' => $nameTitle]);
3836

3937
// Create the CRUD Model and show output
4038
$this->call('backpack:crud-model', ['name' => $nameTitle]);
4139

40+
// Create the CRUD Controller and show output
41+
$this->call('backpack:crud-controller', ['name' => $nameTitle]);
42+
4243
// Create the CRUD Request and show output
4344
$this->call('backpack:crud-request', ['name' => $nameTitle]);
4445

0 commit comments

Comments
 (0)