Skip to content

Commit

Permalink
Editado arquivo README.md (comandos)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-oldra committed May 30, 2022
1 parent a63fdbb commit db686fb
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,16 @@ npm run dev
php artisan key:generate
```

### Migrations
### Make Model, Controller, Request e Migration
```
php artisan migrate // cria as tabelas
php artisan migrate:refresh // recria as tabelas alteradas
php artisan migrate:fresh // recria todas as tabelas
php artisan make:model Comment -m
php artisan make:controller UserController
php artisan make:controller Admin\CommentController
php artisan make:request StoreUpdateUserFormRequest
php artisan make:migration add_nova_coluna --table=tabela_do_banco
```

### Seeders
Expand All @@ -70,12 +75,9 @@ php artisan make:seeder UsersSeeder // cria um seeder
php artisan db:seed // executa o seeder
```

### Controllers
```
php artisan make:controller UserController
```

### Requests
### Migrations
```
php artisan make:request StoreUpdateUserFormRequest
php artisan migrate // cria as tabelas
php artisan migrate:refresh // recria as tabelas alteradas
php artisan migrate:fresh // recria todas as tabelas
```

0 comments on commit db686fb

Please sign in to comment.