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.
- PHP 8.2 or higher
- Composer
- Node.js and npm
git clone https://github.com/wellywahyudi/laravel-socket.git
cd laravel-socket
composer install
npm install
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=
php artisan migrate
php artisan serve
php artisan reverb:start