@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | - |
|
| 7 | -use App\Http\Requests; |
|
| 8 | 5 | use App\Customer as Customer; |
| 9 | 6 | |
| 10 | 7 | class CustomersController extends Controller |
@@ -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 | } |