app/Http/Controllers/Auth/RegisterController.php
/**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
Get a validator for an incoming registration request.
@param  array  $data
@return \Illuminate\Contracts\Validation\Validator
Get a validator for an incoming registration request . @param array $data @return \ Illuminate \ Contracts \ Validation \ Validator
public function showRegistrationForm()
    {
        if(auth()->check()){
            return redirect()->route("dashboard.index");
        }else {
            return redirect()->route('login');
        }
        return view('auth.register');
    }
public function showRegistrationForm ( ) { if ( auth ( ) -> check ( ) ) { return redirect ( ) -> route ( " dashboard.index " ) ; } else { return redirect ( ) -> route ( 'login' ) ; } return view ( 'auth.register' ) ; }
Get a validator for an incoming registration request.
Get a validator for an incoming registration request .