Skip to content

Commit

Permalink
updated address module
Browse files Browse the repository at this point in the history
  • Loading branch information
dipaksarkar committed Nov 6, 2023
1 parent 8c480f8 commit 1334589
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ public function up()
Schema::create('addresses', function (Blueprint $table) {
$table->id();
$table->nullableMorphs('addressable');
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->string('company')->nullable();
$table->string('line1')->nullable();
$table->string('line2')->nullable();
$table->string('city')->nullable();
$table->string('state')->nullable();
$table->string('postal_code')->nullable();
$table->string('country')->nullable();
$table->string('phone_number')->nullable();
$table->boolean('default')->default(false);
$table->string('ref')->nullable();
$table->timestamps();
Expand Down
42 changes: 0 additions & 42 deletions database/migrations/2022_07_24_095001_create_payments_table.php

This file was deleted.

4 changes: 4 additions & 0 deletions src/Models/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class Address extends Model
* @var array
*/
protected $fillable = [
'first_name',
'last_name',
'company',
'phone_number',
'line1',
'line2',
'city',
Expand Down

0 comments on commit 1334589

Please sign in to comment.