File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -262,11 +262,11 @@ Open the generated migration class (`database/migrations/<timestamp>_create_prod
262
262
Schema::create('products', function (Blueprint $table) {
263
263
$table->id();
264
264
265
- + $table->string('name');
266
- + $table->decimal('price', 8, 2);
267
- + $table->text('description');
268
- + $table->boolean('is_active')->default(true);
269
- + $table->date('created_date')->nullable();
265
+ + $table->string('name');
266
+ + $table->decimal('price', 8, 2);
267
+ + $table->text('description');
268
+ + $table->boolean('is_active')->default(true);
269
+ + $table->date('created_date')->nullable();
270
270
271
271
$table->timestamps();
272
272
});
@@ -276,7 +276,7 @@ Open the generated migration class (`database/migrations/<timestamp>_create_prod
276
276
Finally, execute the migration :
277
277
278
278
` ` ` console
279
- php artisan
279
+ php artisan migrate
280
280
` ` `
281
281
282
282
And after that, just adding the `#[ApiResource]` attribute as follows onto your model:
You can’t perform that action at this time.
0 commit comments