We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b62f14 commit 81b3408Copy full SHA for 81b3408
database/migrations/create_places_table.php.stub
@@ -18,7 +18,7 @@ class CreatePlacesTable extends Migration
18
$table->string('email')->nullable();
19
$table->string('phone')->nullable();
20
$table->string('website')->nullable();
21
- $table->foreignId('image_id')->nullable();
+ $table->foreignId('image_id')->nullable()->constrained('files')->nullOnDelete();
22
$table->string('latitude', 30)->nullable();
23
$table->string('longitude', 30)->nullable();
24
$table->json('status')->default(new Expression('(JSON_OBJECT())'));
0 commit comments