public function register(UserRegistrationRequest $request){
    $user = User::create([
      'name' => $request->input('name'),
      'email' => $request->input('email'),
      'password' => bcrypt($request->input('password')),
      'instagram_account' => $request->input('instagram_account')
    ]);
    return new UserResource($user);
  }
  public function login(UserLoginRequest $request){
    $credentials = request(['email', 'password']);
Beri Komentar
Belum ada komentar. Jadilah yang pertama untuk memberikan komentar!