| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('api_tokens', function (Blueprint $table) { |
||
| 17 | $table->string('name'); |
||
| 18 | $table->string('token', 60)->unique()->nullable()->default(null); |
||
| 19 | $table->timestamp('expires_at')->default( |
||
| 20 | now()->addDays(config('flightdeck.tokens.expire_days'))->toDateTimeString() |
||
| 21 | ); |
||
| 22 | }); |
||
| 23 | } |
||
| 24 | |||
| 35 |