added POST,GET,PUT,DELETE controller

This commit is contained in:
Zain Fauzan Rofie Azizi
2018-04-26 16:27:15 +08:00
parent 2c6921ea3f
commit 4c5c65c289
20 changed files with 3939 additions and 161 deletions
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDeliveryInfosTable extends Migration
class CreateDeliveryinfosTable extends Migration
{
/**
* Run the migrations.
@@ -13,9 +13,10 @@ class CreateDeliveryInfosTable extends Migration
*/
public function up()
{
Schema::create('delivery_infos', function (Blueprint $table) {
$table->increments('id');
$table->string('branch');
Schema::create('deliveryinfos', function (Blueprint $table) {
$table->increments('id');
$table->string('branch');
$table->string('deli_info');
$table->string('address');
$table->string('city');
@@ -25,6 +26,7 @@ class CreateDeliveryInfosTable extends Migration
$table->string('contact_person');
$table->integer('contact_person_no');
$table->timestamps();
});
}
@@ -35,6 +37,6 @@ class CreateDeliveryInfosTable extends Migration
*/
public function down()
{
Schema::dropIfExists('delivery_infos');
Schema::dropIfExists('deliveryinfos');
}
}