/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return response()->json(['status' => 'OK', 'data' => Logo::all()], 200); }
public function index() { $logos = Logo::all(); return view('logos.index', compact('logos')); }