bagaimana berbagi jumlah hal ke sidebar di laravel
// in appserviceprovider.php
View::composer('layouts.admin.menu', function ($view) {
$contactUsService = new ContactUsService(new ContactUs());
$contactUsNotReadCount = $contactUsService->readOrNot(0)->count();
$view->with('contactUsNotReadCount', $contactUsNotReadCount);
});
Mohamad