for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* rmarchiv.tk
* (c) 2016-2017 by Marcel 'ryg' Hering
*/
namespace App\Http\ViewComposers;
use Illuminate\Contracts\View\View;
class UserComposer
{
public function __construct()
}
/**
* Bind data to the view.
*
* @param View $view
* @return void
public function compose(View $view)
$user = \DB::table('users')
->leftJoin('user_settings', 'users.id', '=', 'user_settings.user_id')
->where('users.id', '=', \Auth::id());
$view->with('user', $user);