Ale Gallo
b91cf0cbde
committing part of the laravel system with templating files and api implementation.
16 lines
271 B
PHP
16 lines
271 B
PHP
<?php
|
|
|
|
namespace App\View\Composers;
|
|
|
|
use Illuminate\View\View;
|
|
|
|
class LoggedInUserComposer
|
|
{
|
|
/**
|
|
* Bind loggedin user value to the view.
|
|
*/
|
|
public function compose(View $view): void
|
|
{
|
|
$view->with('loggedinUser', request()->user());
|
|
}
|
|
}
|