codigo actual del servidor, con avances de joan
This commit is contained in:
15
app/Http/Controllers/Seller/NotificationController.php
Normal file
15
app/Http/Controllers/Seller/NotificationController.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Seller;
|
||||
|
||||
use Auth;
|
||||
|
||||
class NotificationController extends Controller
|
||||
{
|
||||
public function index() {
|
||||
$notifications = auth()->user()->notifications()->paginate(15);
|
||||
auth()->user()->unreadNotifications->markAsRead();
|
||||
|
||||
return view('seller.notification.index', compact('notifications'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user