Skip to content

Files

Latest commit

c3db0be · Nov 19, 2024

History

History

laravel-integration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Nov 19, 2024
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023
Dec 11, 2023

Laravel and TalkJS example

This repository demonstrates how to integrate TalkJS chat into a Laravel application, enabling real-time communication between users. See our How to add chat to a Laravel app with TalkJS tutorial for more details.

Prerequisites

Before getting started, make sure you have the following ready or installed:

  • Composer: Required for installing Laravel dependencies. Install Composer
  • Laravel: If not, install it with Composer:
    composer create-project --prefer-dist laravel/laravel your-project-name
    cd your-project-name
  • Node.js and NPM: Required for Laravel Mix. Install Node.js and NPM
  • TalkJS account: Sign up for a TalkJS account at https://talkjs.com/ to obtain your App ID.
  • Use APP_ID: Replace the placeholder <APP_ID> in resources/views/chat.blade.php with your App ID.

Installation

  1. Clone or download this project.
  2. Install dependencies:
composer install
npm install
  1. Set up your environment:
  • Copy the .env.example file to .env and configure your database.
  • Run migrations:
    php artisan migrate
  1. Compile assets:
npm run dev
  1. Serve the application:
php artisan serve
  1. Open your browser and visit http://127.0.0.1:8000. You should see the Laravel welcome page.
  2. Follow the steps outlined in the tutorial to integrate TalkJS chat into your Laravel application.