简体   繁体   English

Laravel注册页面未加载

[英]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. 基本上,我无法在a处访问laravel的身份验证系统。 I download laravel edit my .env file and run php artisan make:auth . 我下载laravel编辑我的.env文件并运行php artisan make:auth It doesn't give me any errors but rather it says Authentication scaffolding generated successfully . 它没有给我任何错误,但是它说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. 思考它的好,我运行php artisan serve头到localhost:8000 ,然后我点击Register 。那就是当问题starts.Either localhost/register无法完成装货或它然后我尝试注册一个新的user.Click register和。 ....什么也没有发生,它也永远不会完成加载。

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 因此,我一遍又一遍地安装了laravel(这是第11次),但是问题并没有解决

Please help 请帮忙

I'm explaining the steps to generate laravel auth scaffolding in a new laravel application 我正在解释在新的laravel应用程序中生成laravel auth支架的步骤

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. 1)从github安装或复制Laravel Application,并将其放在您的localhost文件夹中,并在终端中运行composer install命令以获取供应商。

2) Copy the files of .env.example and paste them in a new file named .env 2)复制.env.example的文件并将其粘贴到名为.env的新文件中

3) Run php artisan key:generate to generate a key for you application 3)运行php artisan key:generate为您的应用程序生成一个密钥

4) Setup the database for you application by changing the value for following parameters in .env file: 4)通过更改.env文件中以下参数的值来为您的应用程序设置数据库:

/* 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 5)运行artisan命令以生成auth脚手架php artisan make:auth

6) Then use artisan migration command to create tables in database php artisan migrate 6)然后使用artisan migration命令在数据库php artisan migrate创建表artisan migration

These are the 6 steps to use Laravel Auth Scaffolding in a new laravel application. 这是在新的laravel应用程序中使用Laravel Auth脚手架的6个步骤。 Try this out. 试试看 Hope it helps you with your problem!!! 希望它可以帮助您解决问题!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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