Compare commits
No commits in common. "4eb94a736a90419952573a321ca8b08e11d40c28" and "f188063967589835462041021510da34c110f075" have entirely different histories.
4eb94a736a
...
f188063967
31
.env.example
31
.env.example
@ -1,9 +1,9 @@
|
|||||||
APP_NAME="Top Notch"
|
APP_NAME=Laravel
|
||||||
APP_ENV=local
|
APP_ENV=local
|
||||||
APP_KEY=base64:vRgghlbIdXQxXIEvgUArbI9FURhgdyqx3LDXDwHYSmA=
|
APP_KEY=
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_TIMEZONE=UTC
|
APP_TIMEZONE=UTC
|
||||||
APP_URL=localhost
|
APP_URL=http://localhost
|
||||||
|
|
||||||
APP_LOCALE=en
|
APP_LOCALE=en
|
||||||
APP_FALLBACK_LOCALE=en
|
APP_FALLBACK_LOCALE=en
|
||||||
@ -19,12 +19,12 @@ LOG_STACK=single
|
|||||||
LOG_DEPRECATIONS_CHANNEL=null
|
LOG_DEPRECATIONS_CHANNEL=null
|
||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
|
|
||||||
DB_CONNECTION=mysql
|
DB_CONNECTION=sqlite
|
||||||
DB_HOST=mysql
|
# DB_HOST=127.0.0.1
|
||||||
DB_PORT=3306
|
# DB_PORT=3306
|
||||||
DB_DATABASE=laravel
|
# DB_DATABASE=laravel
|
||||||
DB_USERNAME=sail
|
# DB_USERNAME=root
|
||||||
DB_PASSWORD=password
|
# DB_PASSWORD=
|
||||||
|
|
||||||
SESSION_DRIVER=database
|
SESSION_DRIVER=database
|
||||||
SESSION_LIFETIME=120
|
SESSION_LIFETIME=120
|
||||||
@ -42,13 +42,13 @@ CACHE_PREFIX=
|
|||||||
MEMCACHED_HOST=127.0.0.1
|
MEMCACHED_HOST=127.0.0.1
|
||||||
|
|
||||||
REDIS_CLIENT=phpredis
|
REDIS_CLIENT=phpredis
|
||||||
REDIS_HOST=redis
|
REDIS_HOST=127.0.0.1
|
||||||
REDIS_PASSWORD=null
|
REDIS_PASSWORD=null
|
||||||
REDIS_PORT=6379
|
REDIS_PORT=6379
|
||||||
|
|
||||||
MAIL_MAILER=smtp
|
MAIL_MAILER=log
|
||||||
MAIL_HOST=mailpit
|
MAIL_HOST=127.0.0.1
|
||||||
MAIL_PORT=1025
|
MAIL_PORT=2525
|
||||||
MAIL_USERNAME=null
|
MAIL_USERNAME=null
|
||||||
MAIL_PASSWORD=null
|
MAIL_PASSWORD=null
|
||||||
MAIL_ENCRYPTION=null
|
MAIL_ENCRYPTION=null
|
||||||
@ -62,8 +62,3 @@ AWS_BUCKET=
|
|||||||
AWS_USE_PATH_STYLE_ENDPOINT=false
|
AWS_USE_PATH_STYLE_ENDPOINT=false
|
||||||
|
|
||||||
VITE_APP_NAME="${APP_NAME}"
|
VITE_APP_NAME="${APP_NAME}"
|
||||||
|
|
||||||
SCOUT_DRIVER=meilisearch
|
|
||||||
MEILISEARCH_HOST=http://meilisearch:7700
|
|
||||||
|
|
||||||
MEILISEARCH_NO_ANALYTICS=false
|
|
||||||
|
@ -12,7 +12,7 @@ public function up(): void
|
|||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('order_id')->constrained();
|
$table->foreignId('order_id')->constrained();
|
||||||
$table->string('sku')->nullable();
|
$table->string('sku')->nullable();
|
||||||
$table->string('product_name')->nullable();
|
$table->string('product_name');
|
||||||
$table->string('color')->nullable();
|
$table->string('color')->nullable();
|
||||||
|
|
||||||
$table->softDeletes();
|
$table->softDeletes();
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
->assertHasNoErrors();
|
->assertHasNoErrors();
|
||||||
|
|
||||||
$this->assertDatabaseHas('invoices', [
|
$this->assertDatabaseHas('invoices', [
|
||||||
'internal_id' => 'TN4001',
|
'internal_id' => 'TN40001',
|
||||||
'customer_id' => $formData['customer_id'],
|
'customer_id' => $formData['customer_id'],
|
||||||
'status' => $formData['status'],
|
'status' => $formData['status'],
|
||||||
'has_gst' => $formData['has_gst'],
|
'has_gst' => $formData['has_gst'],
|
||||||
@ -65,7 +65,7 @@
|
|||||||
'hst_rate' => $hst_rate,
|
'hst_rate' => $hst_rate,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$invoice = Invoice::where('internal_id', 'TN4001')->firstOrFail();
|
$invoice = Invoice::where('internal_id', 'TN40001')->firstOrFail();
|
||||||
|
|
||||||
$this->assertEquals($invoice->orders->isEmpty(), true);
|
$this->assertEquals($invoice->orders->isEmpty(), true);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user