#
Create your database and user through cPanel:
Go to MySQL Databases

Create a new database

Add a database user with a strong password

Assign user privileges

⚠️ Avoid special characters like
#in passwords.
#
Domain Configuration #
To run your frontend (Next.js) and backend (Laravel) smoothly on separate domains:

Customer Web Panel (Next.js frontend) #
Use your main domain for the customer site:
https://www.example.com
Admin Panel (Laravel backend) #
Create a subdomain for the admin panel API:
Example: https://admin.example.com
Make sure both domains point to the correct directories in your hosting environment or server (e.g., NGINX or Apache config).
Set CORS properly in Laravel to allow frontend domain requests.
In Laravel .env, update:
APP_URL:https://admin.example.com
FRONTEND_URL: =https://www.example.com
In Next.js .env.local:
NEXT_PUBLIC_API_URL: = https://admin.example.com/api
Installer Access (Laravel #
Open your browser and go to either of these URLs:
https://your-domain.com
https://your-domain.com/public