| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public static function createTable() |
||
| 15 | { |
||
| 16 | DB::schema()->create((new static())->table, function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->string('name'); |
||
| 19 | $table->string('email')->unique(); |
||
| 20 | $table->string('password'); |
||
| 21 | $table->string('token')->nullable(); |
||
| 22 | $table->boolean('is_admin')->default(false); |
||
| 23 | $table->timestamps(); |
||
| 24 | }); |
||
| 50 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.