@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Yab\FlightDeck\Commands; |
| 4 | 4 | |
| 5 | -use Yab\FlightDeck\FlightDeck; |
|
| 6 | 5 | use Illuminate\Console\Command; |
| 6 | +use Yab\FlightDeck\FlightDeck; |
|
| 7 | 7 | |
| 8 | 8 | class GenerateToken extends Command |
| 9 | 9 | { |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Yab\FlightDeck\Models\User; |
|
| 4 | 3 | use Faker\Generator as Faker; |
| 4 | +use Yab\FlightDeck\Models\User; |
|
| 5 | 5 | |
| 6 | 6 | $factory->define(User::class, function (Faker $faker) { |
| 7 | 7 | return [ |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * Check if the token is valid |
| 28 | 28 | * |
| 29 | - * @param string $token |
|
| 29 | + * @param string $api_token |
|
| 30 | 30 | * @return boolean |
| 31 | 31 | */ |
| 32 | 32 | public static function checkToken(string $api_token = null) : bool |
@@ -2,9 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Yab\FlightDeck\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use Illuminate\Routing\Controller; |
| 7 | -use Illuminate\Support\Facades\Auth; |
|
| 8 | 6 | use Yab\FlightDeck\Http\Requests\LoginRequest; |
| 9 | 7 | |
| 10 | 8 | class AuthController extends Controller |