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
262262 Schema::create('products', function (Blueprint $table) {
263263 $table->id();
264264
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();
270270
271271 $table->timestamps();
272272 });
@@ -276,7 +276,7 @@ Open the generated migration class (`database/migrations/<timestamp>_create_prod
276276Finally, execute the migration :
277277
278278` ` ` console
279- php artisan
279+ php artisan migrate
280280` ` `
281281
282282And after that, just adding the `#[ApiResource]` attribute as follows onto your model:
You can’t perform that action at this time.
0 commit comments