Commit 6bb24243 authored by Nicolas Widart's avatar Nicolas Widart

Type hinting view class

parent 75c3b2a4
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Illuminate\View\View;
class SidebarViewComposer class SidebarViewComposer
{ {
public function compose($view) public function compose(View $view)
{ {
$view->items->put('setting', [ $view->items->put('setting', [
'weight' => 5, 'weight' => 5,
...@@ -15,4 +16,4 @@ class SidebarViewComposer ...@@ -15,4 +16,4 @@ class SidebarViewComposer
'title' => 'Settings', 'title' => 'Settings',
]); ]);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment