- Timestamp:
- 09/27/21 23:25:43 (3 years ago)
- Branches:
- develop, master
- Children:
- 582789f
- Parents:
- 2fc88ec
- Location:
- database
- Files:
-
- 7 added
- 2 deleted
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
database/migrations/2021_09_27_171104_create_roles_table.php
r2fc88ec r7304c7f 1 1 <?php 2 2 3 use Illuminate\Support\Facades\Schema; 4 use Illuminate\Database\Schema\Blueprint; 3 5 use Illuminate\Database\Migrations\Migration; 4 use Illuminate\Database\Schema\Blueprint;5 use Illuminate\Support\Facades\Schema;6 6 7 class Create UsersTable extends Migration7 class CreateRolesTable extends Migration 8 8 { 9 9 /** … … 14 14 public function up() 15 15 { 16 Schema::create(' users', function (Blueprint $table) {17 $table->i d();16 Schema::create('roles', function (Blueprint $table) { 17 $table->increments('id'); 18 18 $table->string('name'); 19 $table->string('email')->unique();20 $table->timestamp('email_verified_at')->nullable();21 $table->string('password');22 $table->rememberToken();23 $table->timestamps();24 19 }); 25 20 } … … 32 27 public function down() 33 28 { 34 Schema::dropIfExists(' users');29 Schema::dropIfExists('roles'); 35 30 } 36 31 } -
database/migrations/2021_09_27_171108_create_password_resets_table.php
r2fc88ec r7304c7f 1 1 <?php 2 2 3 use Illuminate\Support\Facades\Schema; 4 use Illuminate\Database\Schema\Blueprint; 3 5 use Illuminate\Database\Migrations\Migration; 4 use Illuminate\Database\Schema\Blueprint;5 use Illuminate\Support\Facades\Schema;6 6 7 7 class CreatePasswordResetsTable extends Migration -
database/seeders/DatabaseSeeder.php
r2fc88ec r7304c7f 14 14 public function run() 15 15 { 16 // \App\Models\User::factory(10)->create(); 16 $this->call(RolesTableSeeder::class); 17 $this->call(PermissionsTableSeeder::class); 18 $this->call(RolesPermissionsTableSeeder::class); 19 $this->call(UsersTableSeeder::class); 17 20 } 18 21 }
Note:
See TracChangeset
for help on using the changeset viewer.