app/Http/Controllers/Auth/AuthController.php
/**
     * Create a new user instance after a valid registration.
     *
     * @param  array  $data
     * @return User
     */
Create a new user instance after a valid registration.
@param  array  $data
@return User
Create a new user instance after a valid registration . @param array $data @return User
protected function create(array $data)
    {				
		return User::create([
            'name' => $data['name'],
			'phone_no' => $data['phone_no'],			
			'dept' => $data['dept'],
			'year' => $data['year'],
			'address' => $data['address'],			
			'type' => $data['type'],
            'email' => $data['email'],
			'city' => $data['city'],
            'password' => bcrypt($data['password']),
        ]);
    }
protected function create ( array $ data ) { return User :: create ( [ 'name' => $ data [ 'name' ] , 'phone_no' => $ data [ 'phone_no' ] , 'dept' => $ data [ 'dept' ] , 'year' => $ data [ 'year' ] , 'address' => $ data [ 'address' ] , 'type' => $ data [ 'type' ] , 'email' => $ data [ 'email' ] , 'city' => $ data [ 'city' ] , 'password' => bcrypt ( $ data [ 'password' ] ) , ] ) ; }
Create a new user instance after a valid registration.
Create a new user instance after a valid registration .