Realtime Laravel One to One Chat Application icon

Realtime Laravel One to One Chat Application

Hot or Not
Realtime Laravel One to One Chat Application

Description

This is a realtime laravel one to one chat application. This application allows authenticated users to send messages and files including images, videos, audios and other file types in realtime. When attaching files the application shows progress bar. 

Files can be downloaded and shared with other users.

The application uses livewire polling, no WebSockets required.

Features

Features:

- Realtime one to one messaging

- Realtime Online / Offline user status

- Last active time

- Seen status of delivered message

- Typing Indicator

- Total number of unread messages can be seen from dashboard

- File Sharing:

1. Message sharing 2. Image sharing 3. Video sharing 4. Audio sharing 5. Others file sharing

- File download

- Delete message for everyone

- Upload progress bar

- Smart Media Playback

- Responsive chat interface

- User profile pictures

- Validation rules

Important Note About Video Playback:

Some videos may not play correctly (e.g., audio-only) if encoded with unsupported  codecs, as this is a browser-level limitation and not an application issue.

Requirements

Server Requirements:

PHP 8.2.12 or higher (tested upto PHP 8.3) Composer (Must be installed before going to step 2) MySQL 8.0+ Apache fileinfo extension required

Instructions

Installation & Configuration:

Before starting the installation process make sure your device is connected to the  internet. For localhost start your XAMPP or Laragon or whatever server you are using.

Step 1: Upload Project

Copy and paste all the project files to your server.

Step 2: Install Dependencies

Open your terminal/command prompt in the project's root folder. Run the following command to install dependencies: composer install

Step 3: Generate Application Key

Run: php artisan key:generate

Step 4: Create Database

Create a MySQL database from your hosting control panel or localhost. Example: Database Name: chat_app Select Collation: utf8mb4_unicode_ci

Step 5: Environment File (.env) Configuration

For Local (XAMPP/Laragon): Open .env file then update database credentials: DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=your_database_name DB_USERNAME=root DB_PASSWORD=(leave empty if using default XAMPP or Laragon settings)

For Hosting: DB_CONNECTION=mysql DB_HOST= Use your hosting provider’s database host DB_PORT=3306 DB_DATABASE=your_database_name DB_USERNAME=your_database_username DB_PASSWORD=your_database_password

SMTP settings: SMTP Configuration To enable email functionality configure your SMTP settings in the .env file: MAIL_MAILER=smtp MAIL_HOST=your_smtp_host MAIL_PORT=your_smtp_port MAIL_USERNAME=your_email@example.com MAIL_PASSWORD=your_password MAIL_ENCRYPTION=your_encryption_type MAIL_FROM_ADDRESS=your_email@example.com MAIL_FROM_NAME="${APP_NAME}"

• MAIL_HOST: Your SMTP server address (e.g., smtp.gmail.com) • MAIL_PORT: SMTP server port (usually 587 for TLS or 465 for SSL) • MAIL_USERNAME: Your email address • MAIL_PASSWORD: Your email password • MAIL_ENCRYPTION: Encryption type (tls or ssl)

Step 6: Database Installation Guide

You can set up your database using any of the following two options:

Option 1: Using SQL File (Recommended for Beginners) If you are not familiar with terminal commands, you can manually import the database  structure. Go to your phpMyAdmin and select the database that you have created Click Import tab and click Choose File and choose the database.sql file in the root  directory of this project and click Import Please note that since the users table is empty, you have to register first then login.

Option 2: Using Laravel Migrations (Recommended for Developers) If you prefer using the command line, you can generate the database structure using  Laravel's built-in migration system. Open terminal in project root then run database migration php artisan migrate Your database tables will be automatically generated. Important Note: Ensure that your .env file is properly configured before running php artisan migrate

Step 7: Create Storage Link

For Local (XAMPP/Laragon): Open your terminal/command prompt in the project's root folder then run: php artisan storage:link

For Hosting: If project runs at yourdomain.com then Go to browser url, then visit  yourdomain.com/link-storage Visit this link for just a single time for linking the storage folder in the project root. Make sure you replace yourdomain.com with your actual domain name.

Step 8: Start Running Application

Open browser url and visit localhost then select the project folder. Now your app will  start running.

For hosting just visit the url at which you have uploaded the project.

Step 9: Deleting Livewire Temporary Files

Your application automatically starts cleanup task every 1 hour. It will delete files older  than 1 hour. Files newer than 1 hour will stay. If there are empty folders those will also  be cleaned up during cleanup task.

On Localhost

Open terminal in your project root and run: php artisan schedule:work This will continuously run Laravel’s scheduler and run your cleanup task every 1 hour.

On Hosting (cPanel)

1. Go to Cron Jobs in your cPanel. 2. In Common Settings, select Once Per Minute. 3. In the Command field, enter the full path to your project root and your Artisan  command. For example, if your project is in public_html: /usr/local/bin/php /home/username/public_html/artisan schedule:run>> /dev/null  2>&1 4. Click Add New Cron Job. The cron job runs Laravel’s scheduler every minute, but your cleanup task runs every 1 hour as configured in app/Console/Kernel.php.

Authorshahed89
CategoryScripts & Code / PHP Scripts / Chat
Price$26
Extended License$78
First ReleaseJun 22, 2026
Last UpdateOct 7, 2026
Files included.php, .css, .sql, JavaScript .js
Software versionPHP 8.3
Html/css frameworkBootstrap
Software frameworkLaravel

External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.