app/Http/Controllers/AuthController.php
/**
     * Handles user registration, hashes password for security
     */
Handles user registration, hashes password for security
Handles user registration hashes password for security
public function register(Request $request) {
        return User::create([
            'name' => $request->input('name'),
            'email' => $request->input('email'),
            'password' => Hash::make($request->input('password'))
        ]);
        return $user;
    }
public function register ( Request $ request ) { return User :: create ( [ 'name' => $ request -> input ( 'name' ) , 'email' => $ request -> input ( 'email' ) , 'password' => Hash :: make ( $ request -> input ( 'password' ) ) ] ) ; return $ user ; }
Handles user registration, hashes password for security
Handles user registration hashes password for security