CreateAdmins   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 40
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 21 1
A down() 0 4 1
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