Из кода здесь, $ usercount возвращает не определен в лезвии. < /p>
Widget::add([
'type' => 'view',
'view' => 'your.custom.view', // path to your Blade file
'data' => [
'userCount' => 'test',
],
])->to('before_content');
Подробнее здесь: https://stackoverflow.com/questions/796 ... ck-laravel
Мобильная версия