Skip to content

Commit b5b8694

Browse files
committed
Added: Default Options For Order Type
1 parent b0f678d commit b5b8694

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

app/Services/Setup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ public function runMigration( $fields )
212212
$this->options = app()->make( Options::class );
213213
$this->options->set( 'ns_store_name', $fields[ 'ns_store_name' ] );
214214
$this->options->set( 'ns_registration_enabled', false );
215+
$this->options->set( 'ns_pos_order_types', [ 'takeaway', 'delivery' ]);
215216

216217
return [
217218
'status' => 'success',
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
class UpdateCreateOptionsForOrderType extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
ns()->option->set( 'ns_pos_order_types', [ 'takeaway', 'delivery' ]);
17+
}
18+
19+
/**
20+
* Reverse the migrations.
21+
*
22+
* @return void
23+
*/
24+
public function down()
25+
{
26+
//
27+
}
28+
}

0 commit comments

Comments
 (0)