Admin Panel and API Setup

Laravel Admin Panel for Numberlee

This guide walks you through setting up and running the Laravel-based admin panel for Numberlee. Follow the steps below to configure your development environment on server and run the admin dashboard smoothly.

🧠 Make sure you have PHP, Composer, and a database (e.g., MySQLi) installed before starting.

Prerequisites

Before you begin setting up the Laravel admin panel for Numberlee, ensure the following tools and services are installed and running on your local machine:

  • PHP ≥ 8.1 – Required to run the Laravel backend.

  • Composer – PHP dependency manager. Get Composer.

Deploying the Numberlee Admin Panel via cPanel

Follow the steps below to upload and deploy your Laravel-based admin panel to a cPanel-powered server:

1. Prepare the Project

  • Zip the entire Laravel project folder. (Provided ny Numberlee app with the files)

2. Upload the Project

  • Log in to your cPanel.

  • Open File Manager.

  • Navigate to the public_html directory (or your target deployment directory).

  • Click Upload and select the zipped project folder.

  • Once the upload is complete and you see the green success bar, return to File Manager.

  1. Extract and Organize Files

  • Right-click the uploaded zip file and choose Extract.

  • After extraction, open the extracted folder, select all files and directories, and move them directly to the root (public_html) directory.

  • Delete the now-empty project folder and the original zip file to keep the directory clean.

4. Set Up the Database

  • In cPanel, navigate to MySQL® Databases.

  • Create a new database.

  • Create a new database user (if one doesn’t exist) and assign it to the database.

  • Grant the user All Privileges to the database.

Project Configuration

open .env file

and Please replace the following according to your settings

APP_NAME= (Your APP Name) APP_ENV= (Local or Production) ADMIN_API_URL= (Admin URL) APP_URL=(APP URL) DB_DATABASE= (Database Name) DB_USERNAME=(Database Username) DB_PASSWORD=(Database Password)

update composer

Run the composer update command as shown in below image.

After updating compoer. Please clear your project cache and optimize. To clear cache and optimize please run the below command in your terminal

php artisan optimize:clear

Final step is importing database in your PHPMYADMIN. To import database please run the migration command in your termina. Below is the database migration command.

php aritsan migrate

Your default admin logins are

username: admin@gmail.com

password admin123

Now Setup FCM

Last updated