Cómo compartir el recuento de cosas con la barra lateral en 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