added put post update show

This commit is contained in:
Asif
2018-04-27 17:38:02 +08:00
parent 737c7da54f
commit 21ef45e6a4
7 changed files with 14269 additions and 15 deletions
+9
View File
@@ -0,0 +1,9 @@
<?php
use Faker\Generator as Faker;
$factory->define(App\Warehouse::class, function (Faker $faker) {
return [
//
];
});
@@ -0,0 +1,41 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWarehousesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('warehouses', function (Blueprint $table) {
$table->increments('id');
$table->string('address');
$table->string('city');
$table->integer('zip');
$table->string('state');
$table->string('contact_person');
$table->integer('contact_person_no');
$table->string('branch');
$table->string('country');
$table->string('company_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('warehouses');
}
}