@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | public function index() |
19 | 19 | { |
20 | - $data['customers'] = Customer::All(); |
|
20 | + $data[ 'customers' ] = Customer::All(); |
|
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 | } |