Temporarily finish the migrations and models.
This commit is contained in:
+3
-1
@@ -30,4 +30,6 @@ Route::group(['middleware' => ['web']], function () {
|
||||
//
|
||||
});
|
||||
|
||||
Route::get('/good', 'GoodController@getList');
|
||||
Route::get('/good', [
|
||||
"uses" => "GoodController@getList"
|
||||
]);
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTransactionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('transactions', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('trans_id');
|
||||
$table->integer('buyer_id');
|
||||
$table->integer('seller_id');
|
||||
$table->integer('good_id');
|
||||
$table->integer('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('transactions');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user