Skip to content

Commit bfbe5f9

Browse files
authored
Merge pull request #8 from ohysdev/master
Added Laravel 6.0 and Laravel Nova 2.0 support
2 parents f2ba950 + b7604b6 commit bfbe5f9

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Depending on your version of Laravel, you should install a different version of
2222

2323
| Laravel Version | Package Version |
2424
|:---------------:|:---------------:|
25-
| 6.0 | soon.. |
25+
| 6.0 | 2.0 |
2626
| 5.8 | 1.0 |
2727

2828
You can install the Nova tool in to a [Laravel](http://laravel.com) app that uses [Nova](http://nova.laravel.com) via composer :

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"license": "MIT",
1414
"require": {
1515
"php": ">=7.1.0",
16-
"laravel/nova": "^1.0",
17-
"laravel/framework": "^5.8"
16+
"laravel/nova": "^2.0",
17+
"laravel/framework": "^6.0"
1818
},
1919
"repositories": [
2020
{

src/Observers/OauthClientObserver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Kristories\Novassport\Observers;
44

5-
use Auth;
5+
use Auth, Str;
66
use Kristories\Novassport\Models\OauthClient;
77

88
class OauthClientObserver
@@ -16,7 +16,7 @@ class OauthClientObserver
1616
public function creating(OauthClient $client)
1717
{
1818
$client->user_id = Auth::id();
19-
$client->secret = str_random(40);
19+
$client->secret = Str::random(40);
2020
$client->revoked = false;
2121
$client->personal_access_client = false;
2222
$client->password_client = false;

0 commit comments

Comments
 (0)