Started work on SiteDetails and Setup

This commit is contained in:
Deon George
2018-07-31 14:11:00 +10:00
parent 0ce640c283
commit 1cde2a888a
24 changed files with 1373 additions and 177 deletions

View File

@@ -14,17 +14,17 @@ class UserHomeController extends Controller
public function home()
{
switch (Auth::user()->role()) {
case 'Customer':
case 'customer':
return View('userhome',['o'=>Auth::user()]);
case 'Reseller':
case 'reseller':
return View('resellerhome',['o'=>Auth::user()]);
case 'Wholesaler':
case 'wholesaler':
return View('resellerhome',['o'=>Auth::user()]);
default:
abort(500,'Unknown role: ',Auth::user()->role());
abort(500,'Unknown role: '.Auth::user()->role());
}
}