app/Http/Controllers/Auth/RegisterController.php
/**
     * Show the application registration form.
     *
     * @return \Illuminate\Http\Response
     */
Show the application registration form.
@return \Illuminate\Http\Response
Show the application registration form . @return \ Illuminate \ Http \ Response
public function showRegistrationForm()
    {
        if(auth()->user()->isAdmin())
            return view('auth.register');
        else abort(404);
    }
public function showRegistrationForm ( ) { if ( auth ( ) -> user ( ) -> isAdmin ( ) ) return view ( 'auth.register' ) ; else abort ( 404 ) ; }
Show the application registration form.
Show the application registration form .