芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/panorama.panoramawholesale.com/app/Models/DatabaseNotification.php
<?php namespace App\Models; use App\Traits\ModelTrait; use Illuminate\Notifications\DatabaseNotification as BaseDatabaseNotification; class DatabaseNotification extends BaseDatabaseNotification { use ModelTrait; /** * Header Notification */ public static function headerNotification($user) { $data['notifications'] = $user?->notifications->whereNull('read_at')->sortByDesc('created_at')->take(10); if ($data['notifications']?->count() == 0) { return response()->json([ 'data' => '<div class="d-flex justify-content-center align-items-center h-100"> <p>' . __('No notification found') . '</p> </div>', ]); } return response()->json([ 'data' => view('admin/layouts/includes/header-notification-ajax', $data)->render(), ]); } }
Page is not found
Oops! Page not found.
Sorry, an error has occured, Requested page not found!
Back To Homepage