SHARE
TWEET

Untitled

a guest Jun 8th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. namespace App\Http\Controllers;
  3.  
  4. use App\User;
  5. use Illuminate\Http\Request;
  6.  
  7. class UserController extends Controller
  8. {
  9.     public function postSignUp(Request $request)
  10.     {
  11.         $email=$request['email'];
  12.         $first_name=$request['first_name'];
  13.         $password=bcrypt($request['password']);
  14.  
  15.         $user = new User();
  16.         $user->email = $email;
  17.         $user->first_name = $first_name;
  18.         $user->password = $password;
  19.  
  20.         $user->save();
  21.  
  22.         return redirect()->back();
  23.     }
  24.  
  25.     public function postSignIn(Request $request)
  26.     {
  27.  
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top