Skip to content

Commit

Permalink
Merge pull request #8 from ohysdev/master
Browse files Browse the repository at this point in the history
Added Laravel 6.0 and Laravel Nova 2.0 support
  • Loading branch information
Kristories authored Feb 12, 2020
2 parents f2ba950 + b7604b6 commit bfbe5f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Depending on your version of Laravel, you should install a different version of

| Laravel Version | Package Version |
|:---------------:|:---------------:|
| 6.0 | soon.. |
| 6.0 | 2.0 |
| 5.8 | 1.0 |

You can install the Nova tool in to a [Laravel](http://laravel.com) app that uses [Nova](http://nova.laravel.com) via composer :
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"license": "MIT",
"require": {
"php": ">=7.1.0",
"laravel/nova": "^1.0",
"laravel/framework": "^5.8"
"laravel/nova": "^2.0",
"laravel/framework": "^6.0"
},
"repositories": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/Observers/OauthClientObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Kristories\Novassport\Observers;

use Auth;
use Auth, Str;
use Kristories\Novassport\Models\OauthClient;

class OauthClientObserver
Expand All @@ -16,7 +16,7 @@ class OauthClientObserver
public function creating(OauthClient $client)
{
$client->user_id = Auth::id();
$client->secret = str_random(40);
$client->secret = Str::random(40);
$client->revoked = false;
$client->personal_access_client = false;
$client->password_client = false;
Expand Down

0 comments on commit bfbe5f9

Please sign in to comment.