Compare commits
7 Commits
f188063967
...
4eb94a736a
Author | SHA1 | Date | |
---|---|---|---|
4eb94a736a | |||
07c250eaac | |||
4500ce0c27 | |||
4e952f96c0 | |||
43eebd9528 | |||
ea4f46f96d | |||
3defbd8253 |
31
.env.example
31
.env.example
@ -1,9 +1,9 @@
|
||||
APP_NAME=Laravel
|
||||
APP_NAME="Top Notch"
|
||||
APP_ENV=local
|
||||
APP_KEY=
|
||||
APP_KEY=base64:vRgghlbIdXQxXIEvgUArbI9FURhgdyqx3LDXDwHYSmA=
|
||||
APP_DEBUG=true
|
||||
APP_TIMEZONE=UTC
|
||||
APP_URL=http://localhost
|
||||
APP_URL=localhost
|
||||
|
||||
APP_LOCALE=en
|
||||
APP_FALLBACK_LOCALE=en
|
||||
@ -19,12 +19,12 @@ LOG_STACK=single
|
||||
LOG_DEPRECATIONS_CHANNEL=null
|
||||
LOG_LEVEL=debug
|
||||
|
||||
DB_CONNECTION=sqlite
|
||||
# DB_HOST=127.0.0.1
|
||||
# DB_PORT=3306
|
||||
# DB_DATABASE=laravel
|
||||
# DB_USERNAME=root
|
||||
# DB_PASSWORD=
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=mysql
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=laravel
|
||||
DB_USERNAME=sail
|
||||
DB_PASSWORD=password
|
||||
|
||||
SESSION_DRIVER=database
|
||||
SESSION_LIFETIME=120
|
||||
@ -42,13 +42,13 @@ CACHE_PREFIX=
|
||||
MEMCACHED_HOST=127.0.0.1
|
||||
|
||||
REDIS_CLIENT=phpredis
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_HOST=redis
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
|
||||
MAIL_MAILER=log
|
||||
MAIL_HOST=127.0.0.1
|
||||
MAIL_PORT=2525
|
||||
MAIL_MAILER=smtp
|
||||
MAIL_HOST=mailpit
|
||||
MAIL_PORT=1025
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
@ -62,3 +62,8 @@ AWS_BUCKET=
|
||||
AWS_USE_PATH_STYLE_ENDPOINT=false
|
||||
|
||||
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->foreignId('order_id')->constrained();
|
||||
$table->string('sku')->nullable();
|
||||
$table->string('product_name');
|
||||
$table->string('product_name')->nullable();
|
||||
$table->string('color')->nullable();
|
||||
|
||||
$table->softDeletes();
|
||||
|
0
tests/Feature/.placeholder
Normal file
0
tests/Feature/.placeholder
Normal file
@ -54,7 +54,7 @@
|
||||
->assertHasNoErrors();
|
||||
|
||||
$this->assertDatabaseHas('invoices', [
|
||||
'internal_id' => 'TN40001',
|
||||
'internal_id' => 'TN4001',
|
||||
'customer_id' => $formData['customer_id'],
|
||||
'status' => $formData['status'],
|
||||
'has_gst' => $formData['has_gst'],
|
||||
@ -65,7 +65,7 @@
|
||||
'hst_rate' => $hst_rate,
|
||||
]);
|
||||
|
||||
$invoice = Invoice::where('internal_id', 'TN40001')->firstOrFail();
|
||||
$invoice = Invoice::where('internal_id', 'TN4001')->firstOrFail();
|
||||
|
||||
$this->assertEquals($invoice->orders->isEmpty(), true);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user