Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: site > add > new Laravel project > next > laravel jetstream #1098

Open
45ooo opened this issue Oct 16, 2024 · 1 comment
Open

[Bug]: site > add > new Laravel project > next > laravel jetstream #1098

45ooo opened this issue Oct 16, 2024 · 1 comment

Comments

@45ooo
Copy link

45ooo commented Oct 16, 2024

Platform

Windows

Operating system version

windows 11 pro (23H2 22631.4317 1000.22700.1041.0)

System architecture

Windows

Herd Version

1.10.0

PHP Version

No response

Bug description

at this machine:
Edition Windows 11 Pro
Version 23H2
Installed on ‎27/‎2/‎2023
OS build 22631.4317
Experience Windows Feature Experience Pack 1000.22700.1041.0

facing this issue on herd jetstream one-click:

image

Steps to reproduce

steps:
site > add > new Laravel project > next > laravel jetstream

go to the project folder and run following command:

 php artisan sessions:table

 php artisan migrate

go to web browser:

your-project-dir-name.test

Relevant log output

this is the output

![image](https://github.com/user-attachments/assets/7c09018f-70e7-499b-9d60-44a836edd5ce)
@link2dawood
Copy link

Steps to Investigate:
Check the Logs:
Review the Laravel log files in the storage/logs/laravel.log directory for any detailed error messages related to this issue.
Look for any database-related errors or issues with the session table migration.
Check Database Migration:
Ensure that the session table migration is correctly applied by checking the database for the sessions table.
Run php artisan migrate:status to see the list of applied migrations and verify if the session migration is listed.
Clear Caches:
Sometimes caches can interfere, so try clearing them by running:
bash
Copy code
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear

Check .env Configuration:
Ensure that your .env file is correctly configured for database connections and that session handling is properly set up.
The default session storage is typically file-based. If you're using a database for sessions, verify that SESSION_DRIVER is set to database in .env:
env
Copy code
SESSION_DRIVER=database

Validate Jetstream Installation:
Confirm that Jetstream was installed correctly and that the assets were compiled successfully.
Run the following commands to make sure everything is up to date:
bash
Copy code
npm install
npm run dev

Database Setup:
Check if the database is running and accessible. You can try running a basic query in Tinker to ensure the database connection is stable:
bash
Copy code
php artisan tinker
DB::connection()->getPdo();

Output/Log Analysis:
You included a link to a GitHub image, but it wasn't fully loaded here. Please upload the log output or provide the text content for further analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants