Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
obahchimaobi committed Jan 27, 2025
1 parent c8a079f commit 433e8b6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions app/Filament/Resources/PendingMoviesResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ public static function table(Table $table): Table
'status' => 'approved',
'approved_at' => Carbon::now(),
]);

$recipient = auth()->user();

Notification::make()
->title('Approval Successful')
->success()
->sendToDatabase($recipient)
->send();
})
->visible(fn ($record) => $record->status === 'pending'),
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/isLoggedIn.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Http\Middleware;

use Auth;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Symfony\Component\HttpFoundation\Response;

class isLoggedIn
Expand Down
1 change: 0 additions & 1 deletion app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public function panel(Panel $panel): Panel
{
return $panel
->default()
->databaseNotifications()
->id('admin')
->path('admin')
->login()
Expand Down

0 comments on commit 433e8b6

Please sign in to comment.