Skip to content

Demonstrates how to set up a Laravel application to handle real-time user registrations using Laravel Reverb, Echo, and Alpine.js with a Tailwind CSS slide-up transition effect.

Notifications You must be signed in to change notification settings

wellywahyudi/laravel-socket

Repository files navigation

Laravel Real-Time User Registration with Laravel Reverb, Echo, and Alpine.js

This project demonstrates how to set up a Laravel application to handle real-time user registrations using Laravel Reverb, Echo, and Alpine.js with a Tailwind CSS slide-up transition effect.

example

Prerequisites

  • PHP 8.2 or higher
  • Composer
  • Node.js and npm

Installation

1. Clone the Repository

git clone https://github.com/wellywahyudi/laravel-socket.git
cd laravel-socket

2. Install PHP Dependencies

composer install

3. Install JavaScript Dependencies

npm install

4. Set Up Environment Variables

Copy the .env.example file to .env and update the necessary environment variables:

cp .env.example .env

Update the following variables in the .env file with your database credentials:

DB_CONNECTION=pgsql
DB_HOST=localhost
DB_PORT=5432
DB_DATABASE=lara-socket
DB_USERNAME=postgres
DB_PASSWORD=

5. Run Database Migrations

php artisan migrate

6. Run the Application

php artisan serve

7. Running the Laravel Reverb

php artisan reverb:start

About

Demonstrates how to set up a Laravel application to handle real-time user registrations using Laravel Reverb, Echo, and Alpine.js with a Tailwind CSS slide-up transition effect.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages