diff --git a/app/Http/Controllers/Dashboard/DashboardController.php b/app/Http/Controllers/Dashboard/DashboardController.php index 5ceb112..b0a42d0 100644 --- a/app/Http/Controllers/Dashboard/DashboardController.php +++ b/app/Http/Controllers/Dashboard/DashboardController.php @@ -52,6 +52,8 @@ class DashboardController extends Controller } public function profile() { - return redirect('/'); + $user = User::where(['character_id' => $this->user()->getId()])->first(); + + return view('dashboard.profile')->with('user', $user); } } diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index 89cb8ca..7a37275 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -4,14 +4,6 @@ namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; -use Socialite; -use DB; - -use App\Models\User\User; -use Seat\Eseye\Cache\NullCache; -use Seat\Eseye\Configuration; -use Seat\Eseye\Containers\EsiAuthentication; -use Seat\Eseye\Eseye; class RedirectIfAuthenticated { diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 3049068..e12ff88 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -13,7 +13,7 @@ class AuthServiceProvider extends ServiceProvider * @var array */ protected $policies = [ - // 'App\Model' => 'App\Policies\ModelPolicy', + 'App\Model' => 'App\Policies\ModelPolicy', ]; /** diff --git a/config/queue.php b/config/queue.php index bc273cd..ef46a2a 100644 --- a/config/queue.php +++ b/config/queue.php @@ -63,7 +63,7 @@ return [ 'connection' => 'default', 'queue' => env('REDIS_QUEUE', 'default'), 'retry_after' => 90, - 'block_for' => null, + 'block_for' => 5, ], ], diff --git a/config/session.php b/config/session.php index c68016b..5152ff7 100644 --- a/config/session.php +++ b/config/session.php @@ -72,7 +72,7 @@ return [ | */ - 'connection' => env('SESSION_CONNECTION', null), + 'connection' => env('SESSION_CONNECTION', 'default'), /* |--------------------------------------------------------------------------