CreateAdmins::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 21

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 9.584
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreateAdmins extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     * @link   https://scotch.io/tutorials/simple-and-easy-laravel-login-authentication
13
     */
14
    public function up()
15
    {
16
        // @todo COmentei fodaasse, verificar se da bug @bug
17
        // // @todo PRecisa mesmo ?
18
        // Schema::create('admins', function (Blueprint $table) {
19
        //     $table->engine = 'InnoDB';
20
        //     $table->increments('id');
21
22
        //     $table->string('first_name');
23
        //     $table->string('last_name');
24
        //     $table->string('email')->index();
25
        //     $table->string('password');
26
        //     $table->string('image')->nullable();
27
        //     $table->string('role');
28
        //     $table->text('permissions')->nullable();
29
        //     $table->rememberToken();
30
        //     $table->boolean('active');
31
32
        //     $table->timestamps();
33
        // });
34
    }
35
36
    /**
37
     * Reverse the migrations.
38
     *
39
     * @return void
40
     */
41
    public function down()
42
    {
43
        // Schema::dropIfExists('admins');
44
    }
45
}
46