public function store(RegisterRequest $request) { $user = new User(); $user->username = $_POST['username']; $user->password = $_POST['password']; $user->level = "seller"; $user->save(); $profile = new Profile(); $profile->nama = $_POST['nama']; $profile->nip = $_POST['nip']; $profile->alamat = $_POST['alamat']; $profile->email = $_POST['email']; $profile->telp = $_POST['telp']; $profile->user_id = $user->id; $profile->save(); return redirect(url("/users")); }
public function contact() { return view("GunawandyUser::profile.contact", ['profile' => Profile::all()]); }