GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

CreateAdminsTable::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 31

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 31
rs 9.424
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
use Serverfireteam\Panel\Admin;
6
7
class CreateAdminsTable extends Migration {
8
9
	/**
10
	 * Run the migrations.
11
	 *
12
	 * @return void
13
	 */
14
	public function up()
15
	{
16
        Schema::create('admins', function($table)
17
		{
18
			$table->increments('id');
19
			$table->string('email');
20
			$table->string('password');
21
			$table->text('permissions')->nullable();
22
			$table->boolean('activated')->default(0);
23
			$table->string('activation_code')->nullable();
24
			$table->timestamp('activated_at')->nullable();
25
			$table->timestamp('last_login')->nullable();
26
			$table->string('persist_code')->nullable();
27
			$table->string('reset_password_code')->nullable();
28
      $table->string('remember_token', 100)->nullable();
29
			$table->string('first_name')->nullable();
30
			$table->string('last_name')->nullable();
31
			$table->timestamps();
32
			// We'll need to ensure that MySQL uses the InnoDB engine to
33
			// support the indexes, other engines aren't affected.
34
			$table->engine = 'InnoDB';
35
			$table->unique('email');
36
			$table->index('activation_code');
37
			$table->index('reset_password_code');
38
		});
39
        Admin::create(array(
40
            'email' => '[email protected]',
41
            'password' =>  Hash::make('12345')
42
        ));
43
                
44
	}
45
46
	/**
47
	 * Reverse the migrations.
48
	 *
49
	 * @return void
50
	 */
51
	public function down()
52
	{
53
            Schema::drop('admins');
54
	}
55
56
}
57