Skip to content

Commit

Permalink
Add Pulse (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschucki authored Dec 28, 2024
1 parent d506ddf commit 7fd6f6f
Show file tree
Hide file tree
Showing 10 changed files with 583 additions and 20 deletions.
6 changes: 5 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace App\Providers;

use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;
use YoutubeDl\YoutubeDl;

Expand All @@ -19,6 +21,8 @@ public function register(): void
*/
public function boot(): void
{
//
Gate::define('viewPulse', function (User $user) {
return $user->isAdmin();
});
}
}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"inertiajs/inertia-laravel": "^2.0",
"laravel/framework": "^11.31",
"laravel/horizon": "^5.30",
"laravel/pulse": "^1.3",
"laravel/reverb": "^1.0",
"laravel/tinker": "^2.9",
"norkunas/youtube-dl-php": "^2.9",
Expand Down
221 changes: 220 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7fd6f6f

Please sign in to comment.