Next/Future invoices for users
This commit is contained in:
@@ -24,8 +24,11 @@ class UserHomeController extends Controller
|
||||
*/
|
||||
public function home(User $o=NULL): View
|
||||
{
|
||||
if (is_null($o))
|
||||
$o = Auth::user();
|
||||
if ($o)
|
||||
return View('u.home',['o'=>$o]);
|
||||
|
||||
// If User was null, then test and see what type of logged on user we have
|
||||
$o = Auth::user();
|
||||
|
||||
switch (Auth::user()->role()) {
|
||||
case 'customer':
|
||||
|
Reference in New Issue
Block a user