Changeset 7304c7f for database


Ignore:
Timestamp:
09/27/21 23:25:43 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
582789f
Parents:
2fc88ec
Message:

added user authentication, create & forgot password methods and blades

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  
    11<?php
    22
     3use Illuminate\Support\Facades\Schema;
     4use Illuminate\Database\Schema\Blueprint;
    35use Illuminate\Database\Migrations\Migration;
    4 use Illuminate\Database\Schema\Blueprint;
    5 use Illuminate\Support\Facades\Schema;
    66
    7 class CreateUsersTable extends Migration
     7class CreateRolesTable extends Migration
    88{
    99    /**
     
    1414    public function up()
    1515    {
    16         Schema::create('users', function (Blueprint $table) {
    17             $table->id();
     16        Schema::create('roles', function (Blueprint $table) {
     17            $table->increments('id');
    1818            $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();
    2419        });
    2520    }
     
    3227    public function down()
    3328    {
    34         Schema::dropIfExists('users');
     29        Schema::dropIfExists('roles');
    3530    }
    3631}
  • database/migrations/2021_09_27_171108_create_password_resets_table.php

    r2fc88ec r7304c7f  
    11<?php
    22
     3use Illuminate\Support\Facades\Schema;
     4use Illuminate\Database\Schema\Blueprint;
    35use Illuminate\Database\Migrations\Migration;
    4 use Illuminate\Database\Schema\Blueprint;
    5 use Illuminate\Support\Facades\Schema;
    66
    77class CreatePasswordResetsTable extends Migration
  • database/seeders/DatabaseSeeder.php

    r2fc88ec r7304c7f  
    1414    public function run()
    1515    {
    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);
    1720    }
    1821}
Note: See TracChangeset for help on using the changeset viewer.