Skip to content

Commit

Permalink
Re-Sort Create functions
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
egyjs committed Sep 23, 2021
1 parent 0c72a89 commit 93499a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Console/Commands/CrudBackpackCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ public function handle()
$nameKebab = Str::kebab($nameTitle);
$namePlural = ucfirst(str_replace('-', ' ', Str::plural($nameKebab)));

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

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

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

// Create the CRUD Request and show output
$this->call('backpack:crud-request', ['name' => $nameTitle]);

Expand Down

0 comments on commit 93499a4

Please sign in to comment.