modified how rental prices are displayed based on user, and added a section for admins to be able to see all automatically

modified user table to drop roles and scopes columns from the database
This commit is contained in:
2018-11-10 14:36:54 -06:00
parent f8885853ab
commit 70832d14e5
7 changed files with 114 additions and 4 deletions
@@ -0,0 +1,34 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class DropRolesColumnUserTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function(Blueprint $table) {
$table->dropColumn('role');
$table->dropColumn('scopes');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function(Blueprint $table) {
$table->string('role')->default('Guest');
$table->text('scopes')->nullable();
});
}
}