/** * Display a listing of the resource. * * @return Response */ public function index() { $companies = Company::all(); return $companies; }
/** * Display a listing of the resource. * * @return Response */ public function index() { $companies = Company::all(); return view('companies.index', ['companies' => $companies]); }