from the code here, $userCount returns undefined in blade.
Widget::add([
'type' => 'view',
'view' => 'your.custom.view', // path to your Blade file
'data' => [
'userCount' => 'test',
],
])->to('before_content');
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
from the code here, $userCount returns undefined in blade.
Widget::add([
'type' => 'view',
'view' => 'your.custom.view', // path to your Blade file
'data' => [
'userCount' => 'test',
],
])->to('before_content');