| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | 16 | Schema::create('oauth2_refresh_tokens', function(Blueprint $table) { |
|
| 17 | 16 | $table->char('id', 80)->primary(); |
|
| 18 | 16 | $table->char('access_token_id', 80); |
|
| 19 | |||
| 20 | 16 | $table->foreign('access_token_id') |
|
| 21 | 16 | ->references('id')->on('oauth2_access_tokens') |
|
| 22 | 16 | ->onUpdate('cascade') |
|
| 23 | 16 | ->onDelete('cascade'); |
|
| 24 | |||
| 25 | 16 | $table->dateTime('expires_at'); |
|
| 26 | 16 | $table->timestamps(); |
|
| 27 | 16 | }); |
|
| 28 | 16 | } |
|
| 29 | |||
| 40 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.