app/Http/Controllers/CustomerController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $customers = Customer::all();
        return view('customers.index',['customers' => $customers]);
    }
public function index ( ) { $ customers = Customer :: all ( ) ; return view ( 'customers.index' , [ 'customers' => $ customers ] ) ; }
Display a listing of the resource.
Display a listing of the resource .