Skip to content

Commit

Permalink
Incomplete command & indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceAmstoutz authored and dunglas committed Oct 2, 2024
1 parent 5801e18 commit ebd8fad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ Open the generated migration class (`database/migrations/<timestamp>_create_prod
Schema::create('products', function (Blueprint $table) {
$table->id();
+ $table->string('name');
+ $table->decimal('price', 8, 2);
+ $table->text('description');
+ $table->boolean('is_active')->default(true);
+ $table->date('created_date')->nullable();
+ $table->string('name');
+ $table->decimal('price', 8, 2);
+ $table->text('description');
+ $table->boolean('is_active')->default(true);
+ $table->date('created_date')->nullable();
$table->timestamps();
});
Expand All @@ -276,7 +276,7 @@ Open the generated migration class (`database/migrations/<timestamp>_create_prod
Finally, execute the migration:

```console
php artisan
php artisan migrate
```

And after that, just adding the `#[ApiResource]` attribute as follows onto your model:
Expand Down

0 comments on commit ebd8fad

Please sign in to comment.