public function dashboard() { $steam_accounts = SteamAccount::with('rank')->get(); $digits = Digit::get(); $ranks = Rank::get(); return view('mod.index', compact('steam_accounts', 'digits', 'ranks')); }
public function store(Request $request) { $this->validate($request, ['digits' => 'required|unique:digits']); Digit::create($request->all()); return redirect(url('/dashboard')); }