Home>

Laravel 5.5
php PHP 7.2.34
Development environment cloud9
We are using.
Install Laravel, install helper functions, etc.$php artisan make: authWas typed with a command.

By implementing the member registration function,

Click "Membership registration" on the navbar on the TOP page ↓

The page contents of the created views/auth/register.blade.php are not displayed ...

Below is the code for each.

■ retes/web.php

<? php
Auth :: routes ();
/ *
| ------------------------------------------------- -------------------------
| User side No user authentication required
| ------------------------------------------------- -------------------------
* /
Route :: get ('/', function () {
    return view ('index');
});
// User registration No authentication required
Route :: get ('signup','Auth \ RegisterController @ showRegistrationForm')->name ('signup.get');
Route :: post ('signup','Auth \ RegisterController @ register')->name ('signup.post');
// Login authentication
Route :: get ('login','Auth \ LoginController @ showLoginForm')->name ('login');
Route :: post ('login','Auth \ LoginController @ login')->name ('login.post');
Route :: get ('logout','Auth \ LoginController @ logout')->name ('logout.get');

■ top page navbar

<header><nav>              <button type = "button" data-toggle = "collapse" data-target = "nav-bar">        <span></span>    </button>                <ul></ul>        <ul>              @if (Auth :: check ())
                  <li>Welcome, {{Auth :: user ()->name}}</li>                <li>                       Member menu                       <ul>                        <li></li>                        <li><i></i>Logout</li>                    </ul>                </li>              @else
                  <li><i></i>Membership registration</li>                <li><i></i>Login</li>              @endif
          </ul>        </nav></header>

■ views/auth/register.blade.php

@extends ('layouts.app')
@section ('content')
             New member registration          Please register as a member from the following.                             {!! Form :: open (['route' =>'signup.post']) !!}
                                    {!! Form :: label ('name','name') !!}
                    {!! Form :: text ('name', old ('name'), ['class' =>'form-control']) !!}
                                                    {!! Form :: label ('birth','date of birth') !!}
                                        {{Form :: selectRange ('year', 1950, 2010,'', ['placeholder' =>''])}} Year{{Form :: selectRange ('month', 1, 12,'', ['placeholder' =>''])}} Month
                    {{Form :: selectRange ('day', 1, 31,'', ['placeholder' =>''])}} days
                                    
                                    {!! Form :: label ('email','email address') !!}
                    {!! Form :: email ('email', old ('email'), ['class' =>'form-control']) !!}
                                                    {!! Form :: label ('password','password') !!}
                    {!! Form :: password ('password', ['class' =>'form-control']) !!}
                                                    {!! Form :: label ('password_confirmation','password (for confirmation)') !!}
                    {!! Form :: password ('password_confirmation', ['class' =>'form-control']) !!}
                                {!! Form :: submit ('submit', ['class' =>'btn btn-apply btn-block']) !!}
            {!! Form :: close () !!}
            @endsection


■ Controllers/Auth/RegisterController.php

<? php
namespace App \ Http \ Controllers \ Auth;
use App \ User;
use App \ Http \ Controllers \ Controller;
use Illuminate \ Support \ Facades \ Validator;
use Illuminate \ Foundation \ Auth \ RegistersUsers;
class RegisterController extends Controller
{
   /*
    | ------------------------------------------------- -------------------------
    | Register Controller
    | ------------------------------------------------- -------------------------
    |
    | This controller handles the registration of new users as well as their
    | validation and creation. By default this controller uses a trait to
    | provide this functionality without requiring any additional code.
    |
    * /
    use RegistersUsers;
   /**
     * Where to redirect users after registration.
     *
     * @var string
     * /
    protected $redirectTo ='/';
   /**
     * Create a new controller instance.
     *
     * @return void
     * /
    public function __construct ()
    {
        $this->middleware ('guest');
    }
   /**
     * Get a validator for an incoming registration request.
     *
     * @param array $data
     * @return \ Illuminate \ Contracts \ Validation \ Validator
     * /
    protected function validator (array $data)
    {
        return Validator :: make ($data, [
            'name' =>' required | string | max: 255',
            'email' =>' required | string | email | max: 255 | unique: users',
            'password' =>' required | string | min: 6 | confirmed',
        ]);
    }
   /**
     * Create a new user instance after a valid registration.*
     * @param array $data
     * @return \ App \ User
     * /
    protected function create (array $data)
    {
        return User :: create ([[
            'name' =>$data ['name'],


            'email' =>$data ['email'],


            'password' =>bcrypt ($data ['password']),
        ]);
    }
}

By the way, Illuminate/Foundation/Auth/RegistersUsers.php is below. (I haven't messed with it)

<? php
namespace Illuminate \ Foundation \ Auth;
use Illuminate \ Http \ Request;
use Illuminate \ Support \ Facades \ Auth;
use Illuminate \ Auth \ Events \ Registered;
trait RegistersUsers
{
    use Redirects Users;
   /**
     * Show the application registration form.
     *
     * @return \ Illuminate \ Http \ Response
     * /
    public function showRegistrationForm ()
    {
        return view ('auth.register');
    }
   /**
     * Handle a registration request for the application.
     *
     * @param \ Illuminate \ Http \ Request $request
     * @return \ Illuminate \ Http \ Response
     * /
    public function register (Request $request)
    {
        $this->validator ($request->all ())->validate ();
        event (new Registered ($user = $this->create ($request->all ())));
        $this->guard ()->login ($user);
        return $this->registered ($request, $user)
                        ?: redirect ($this->redirectPath ());
    }
   /**
     * Get the guard to be used during registration.
     *
     * @return \ Illuminate \ Contracts \ Auth \ StatefulGuard
     * /
    protected function guard ()
    {
        return Auth :: guard ();
    }
   /**
     * The user has been registered.
     *
     * @param \ Illuminate \ Http \ Request $request
     * @param mixed $user
     * @return mixed
     * /
    protected function registered (Request $request, $user)
    {
        // //
    }
}

I would be grateful if you could tell me the solution why the contents of register.blade.php are not displayed and it looks like a capture.