/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // Get all names $names = Name::with(['brand', 'status'])->get(); return view('names.index', compact('names')); }