@@ -2,7 +2,8 @@ |
||
| 2 | 2 | use App\Model\Role; |
| 3 | 3 | use App\Model\User; |
| 4 | 4 | |
| 5 | -class CreateRolesRightsUsers { |
|
| 5 | +class CreateRolesRightsUsers |
|
| 6 | +{ |
|
| 6 | 7 | public function run() |
| 7 | 8 | { |
| 8 | 9 | Role::create([ |
@@ -20,7 +20,8 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * Undo the migration |
| 22 | 22 | */ |
| 23 | - public function down() { |
|
| 23 | + public function down() |
|
| 24 | + { |
|
| 24 | 25 | Capsule::schema()->drop('refresh_tokens'); |
| 25 | 26 | } |
| 26 | 27 | } |
@@ -7,10 +7,8 @@ |
||
| 7 | 7 | use App\Model\User; |
| 8 | 8 | use App\Model\AccessToken; |
| 9 | 9 | use App\Model\RefreshToken; |
| 10 | - |
|
| 11 | 10 | use Slim\Http\Request; |
| 12 | 11 | use Slim\Http\Response; |
| 13 | - |
|
| 14 | 12 | use App\Common\JsonException; |
| 15 | 13 | |
| 16 | 14 | class TokenController extends BaseController |