/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $record = Size::with('user')->get(); if (!$record) { return View::make('errors.404'); } //return View::make('company_category.index')->with('data', $record); return View::make('size.index', ['data' => $record, 'sizes' => $this->getSizeListAsJson()]); }