@@ -9,6 +9,6 @@ |
||
| 9 | 9 | class StaffController extends Controller |
| 10 | 10 | { |
| 11 | 11 | public function profile(){ |
| 12 | - return view('users/profile'); |
|
| 12 | + return view('users/profile'); |
|
| 13 | 13 | } |
| 14 | 14 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class StaffController extends Controller |
| 10 | 10 | { |
| 11 | - public function profile(){ |
|
| 11 | + public function profile() { |
|
| 12 | 12 | return view('users/profile'); |
| 13 | 13 | } |
| 14 | 14 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | public function index() |
| 19 | 19 | { |
| 20 | - $data['customers'] = Customer::paginate(15); |
|
| 20 | + $data[ 'customers' ] = Customer::paginate(15); |
|
| 21 | 21 | return view('customers/index', $data); |
| 22 | 22 | } |
| 23 | 23 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | public function edit($id) |
| 35 | 35 | { |
| 36 | - $data['customer'] = Customer::where('id', $id)->get(); |
|
| 36 | + $data[ 'customer' ] = Customer::where('id', $id)->get(); |
|
| 37 | 37 | return view('customers/edit', $data); |
| 38 | 38 | } |
| 39 | 39 | } |