Skip to content

Commit

Permalink
Merge b68cb36 into ce53793
Browse files Browse the repository at this point in the history
  • Loading branch information
nafiesl committed Oct 18, 2019
2 parents ce53793 + b68cb36 commit 3c0da19
Show file tree
Hide file tree
Showing 8 changed files with 533 additions and 507 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: php

php:
- 7.1
- 7.2

before_script:
- travis_retry composer self-update
Expand Down
3 changes: 2 additions & 1 deletion app/Http/Controllers/Api/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Http\Controllers\Api\Auth;

use App\User;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Auth\Events\Registered;
Expand Down Expand Up @@ -70,7 +71,7 @@ protected function create(array $data)
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
'api_token' => str_random(24),
'api_token' => Str::random(24),
]);
}
}
3 changes: 2 additions & 1 deletion app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Http\Controllers\Auth;

use App\User;
use Illuminate\Support\Str;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
Expand Down Expand Up @@ -66,7 +67,7 @@ protected function create(array $data)
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
'api_token' => str_random(24),
'api_token' => Str::random(24),
]);
}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"php": "^7.2",
"backup-manager/laravel": "^1.3",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "5.8.*",
"laravel/framework": "^6.0",
"laravel/passport": "^7.3",
"laravel/tinker": "^1.0",
"luthfi/formfield": "^1.0",
Expand Down
Loading

0 comments on commit 3c0da19

Please sign in to comment.