/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $day_of_weeks = DayOfWeek::all(); return response()->json($day_of_weeks); }