first upload all files
This commit is contained in:
17
Modules/User/Http/ViewComposers/CurrentUserComposer.php
Normal file
17
Modules/User/Http/ViewComposers/CurrentUserComposer.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\User\Http\ViewComposers;
|
||||
|
||||
class CurrentUserComposer
|
||||
{
|
||||
/**
|
||||
* Bind data to the view.
|
||||
*
|
||||
* @param \Illuminate\View\View $view
|
||||
* @return void
|
||||
*/
|
||||
public function compose($view)
|
||||
{
|
||||
$view->with('currentUser', auth()->user());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user