JackD's avatar
Level 6

New setup problem

I'm having problem with the laravel authentication after i successfully installed laravel homestead on my windows machine.

I tried to create a new project to test my laravel homestead setup but when i test the authentication registration it gives me this message

419
Sorry, your session has expired. Please refresh and try again.

Here's my homestead.yaml file

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: s:/web
      to: /home/vagrant/code

sites:
    - map: phpmyadmin.test
      to: /home/vagrant/code/phpmyadmin

    - map: blog.test
      to: /home/vagrant/code/blog/public

databases:
    - blog
# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# zray:
#  If you've already freely registered Z-Ray, you can place the token here.
#     - email: [email protected]
#       token: foo
#  Don't forget to ensure that you have 'zray: "true"' for your site.

Here's my hosts file

127.0.0.1   phpmyadmin.test #:8000
192.168.10.10 blog.test

My .env file

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:mhvjvZnv6alehgWSjja1BhTL4ExxBmx+oWycIBYA5nE=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=blog
DB_USERNAME=root
DB_PASSWORD=secret

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

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}"

I haven't touched any code yet, i just followed the laravel installation with authentication to test my laravel homestead setup, anyone solution on this?

0 likes
1 reply
JackD's avatar
Level 6

PS: current laravel version 5.7.14

Please or to participate in this conversation.