Skip to content

Commit

Permalink
Added: Default Options For Order Type
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair2004 committed Nov 17, 2021
1 parent b0f678d commit b5b8694
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Services/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ public function runMigration( $fields )
$this->options = app()->make( Options::class );
$this->options->set( 'ns_store_name', $fields[ 'ns_store_name' ] );
$this->options->set( 'ns_registration_enabled', false );
$this->options->set( 'ns_pos_order_types', [ 'takeaway', 'delivery' ]);

return [
'status' => 'success',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class UpdateCreateOptionsForOrderType extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
ns()->option->set( 'ns_pos_order_types', [ 'takeaway', 'delivery' ]);
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

0 comments on commit b5b8694

Please sign in to comment.