Skip to content

Commit 9650b46

Browse files
committed
changed config and added migration
1 parent 34a56c5 commit 9650b46

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

config/lara_payments.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
return[
3+
4+
'table' => 'payments',
5+
6+
'paypal' => [
7+
'ClientID' => '',
8+
'ClientSecret' => ''
9+
]
10+
];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class CreatePermissionTables extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
$tableName = config('lara_payments.table');
17+
18+
Schema::create($tableNames, function (Blueprint $table) {
19+
$table->increments('id');
20+
$table->string('name');
21+
22+
$table->timestamps();
23+
});
24+
25+
26+
}
27+
28+
/**
29+
* Reverse the migrations.
30+
*
31+
* @return void
32+
*/
33+
public function down()
34+
{
35+
$tableName = config('lara_payments.table');
36+
37+
Schema::drop($tableName);
38+
39+
}
40+
}

0 commit comments

Comments
 (0)