From ae8930ecf487b32308a2b88ef7d8dfce70e969ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Salamanca?= Date: Mon, 10 Feb 2020 15:36:35 -0300 Subject: [PATCH 1/3] added support to laravel 6.0 --- composer.json | 6 +++--- src/Observers/OauthClientObserver.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 099f5be..afb4e3d 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "kristories/novassport", + "name": "ohysdev/novassport", "description": "A Laravel Nova tool to manage API Authentication (Passport).", "keywords": [ "laravel", @@ -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": [ { diff --git a/src/Observers/OauthClientObserver.php b/src/Observers/OauthClientObserver.php index 8e12039..26b0d12 100644 --- a/src/Observers/OauthClientObserver.php +++ b/src/Observers/OauthClientObserver.php @@ -2,7 +2,7 @@ namespace Kristories\Novassport\Observers; -use Auth; +use Auth, Str; use Kristories\Novassport\Models\OauthClient; class OauthClientObserver @@ -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; From 552feeefa791826feccc828c5ae9842bafa3a8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Salamanca?= Date: Tue, 11 Feb 2020 14:45:58 -0300 Subject: [PATCH 2/3] package version for laravel 6.0 added --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e6ae5b9..5e43f0b 100644 --- a/README.md +++ b/README.md @@ -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 : From b7604b6b0e937a93152383d79977f8a0cd5869e2 Mon Sep 17 00:00:00 2001 From: raulsh <54923646+raulsh@users.noreply.github.com> Date: Tue, 11 Feb 2020 14:57:45 -0300 Subject: [PATCH 3/3] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index afb4e3d..9acc837 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "ohysdev/novassport", + "name": "kristories/novassport", "description": "A Laravel Nova tool to manage API Authentication (Passport).", "keywords": [ "laravel",