added the upload functions for both company image and registration certificate, stored under /storage/app directory

This commit is contained in:
Aqeeb Imtiaz Harun
2018-05-15 10:36:41 +08:00
parent 2da890f36e
commit a1ebdb9767
5 changed files with 129 additions and 167 deletions
@@ -0,0 +1,45 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddNullableToCompanies extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('companies', function (Blueprint $table) {
//
$table->string('company_profile')->nullable()->change(); //need to check about storage type
$table->string('reg_cert')->nullable()->change();
$table->string('company_name')->nullable()->change();
$table->string('registration_no')->nullable()->change();
$table->string('tax_no')->nullable()->change();
$table->integer('tel_no')->nullable()->change();
$table->integer('fax')->nullable()->change();
$table->string('address')->nullable()->change();
$table->string('city')->nullable()->change();
$table->string('postcode')->nullable()->change();
$table->string('state')->nullable()->change();
$table->string('country')->nullable()->change();
$table->string('contact_person')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('companies', function (Blueprint $table) {
//
});
}
}