| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function up() |
||
| 16 | { |
||
| 17 | Schema::create('contacts', function (Blueprint $table) { |
||
| 18 | $table->id(); |
||
| 19 | $table->string('name'); |
||
| 20 | $table->string('email')->nullable(); |
||
| 21 | $table->bigInteger('phone')->nullable(); |
||
| 22 | $table->tinyInteger('gender')->default(1); |
||
| 23 | $table->string('address')->default('N/A'); |
||
| 24 | $table->boolean('favorite')->default(0); |
||
| 25 | $table->boolean('active')->default(1); |
||
| 26 | $table->timestamps(); |
||
| 27 | }); |
||
| 28 | |||
| 29 | Artisan::call('make:permission Contact --all'); |
||
| 30 | } |
||
| 42 |