简体   繁体   中英

Laravel register page not loading

I have been having this problem for some time now and it is getting frustrating. Basically, I cannot access the authentication system of laravel at a. I download laravel edit my .env file and run php artisan make:auth . It doesn't give me any errors but rather it says Authentication scaffolding generated successfully .

Thinking its ok,I run php artisan serve head on to localhost:8000 then I click Register .That is when the problem starts.Either localhost/register never finishes loading OR it does then I try to register a new user.Click register and.....nothing happens.It also never finishes loading.

My env file:

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:gz6+YOp0gakL+IULqPSdd/ToL4knrErcTCCwujzh4DA=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=mysite
DB_USERNAME=admin
DB_PASSWORD=sAhRIcAtorTRasEADERiOn

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

Because of that I install laravel over and over again (this is the 11th time in a row) but the problem doesn't go

Please help

I'm explaining the steps to generate laravel auth scaffolding in a new laravel application

1) Install or copy Laravel Application from github and put that in your localhost folder and run composer install command in terminal to get the vendors.

2) Copy the files of .env.example and paste them in a new file named .env

3) Run php artisan key:generate to generate a key for you application

4) Setup the database for you application by changing the value for following parameters in .env file:

/* Note that there must not be any space after "=" sign
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DATABASE_NAME
DB_USERNAME=DATABASE_USERNAME
DB_PASSWORD=DATABASE_PASSWORD /* Or keep it empty like "DB_PASSWORD=" this if there is no password */

5) Run artisan command to generate the auth scaffolding php artisan make:auth

6) Then use artisan migration command to create tables in database php artisan migrate

These are the 6 steps to use Laravel Auth Scaffolding in a new laravel application. Try this out. Hope it helps you with your problem!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM