Skip to content

Commit

Permalink
TallStackUI
Browse files Browse the repository at this point in the history
  • Loading branch information
kreaweb.be committed Apr 10, 2024
1 parent 8d7e456 commit 8827390
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@

//use Illuminate\Auth\Middleware\RedirectIfAuthenticated;
use App\Models\Userlog;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\QueryException;
use Illuminate\Foundation\Console\AboutCommand;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Log;
use TallStackUi\Facades\TallStackUi;
use Illuminate\Support\Facades\Event;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\QueryException;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use Opcodes\LogViewer\Facades\LogViewer;
use Stevebauman\Location\Facades\Location;
use TallStackUi\Facades\TallStackUi;
use Illuminate\Foundation\Console\AboutCommand;

class AppServiceProvider extends ServiceProvider
{
Expand Down Expand Up @@ -88,6 +89,13 @@ public function boot(): void
}
});

// -----------------------------------------------------------------------
// Log Viewser : grant access (in production) to developer
// -----------------------------------------------------------------------
LogViewer::auth(function ($request) {
return auth()->user() && auth()->user()->is_developer;
});

// -----------------------------------------------------------------------
// TallStackUI personalization
// Ref : https://tallstackui.com/docs/personalization/soft
Expand Down

0 comments on commit 8827390

Please sign in to comment.