dongye9991 2019-07-25 08:03
浏览 184

在Laravel 5.8聊天

I am beginner in Laravel. In my project I use Laravel 5.8.

I would like to add a chat feature on my site (1 user: 1 user). Can you recommend any ready Laravel packages / components for this?

  • 写回答

1条回答 默认 最新

  • duanbiaojin8860 2019-07-25 08:20
    关注

    Build a chat app with Laravel, Vue.js and Pusher. Follow the tutorial https://pusher.com/tutorials/chat-laravel

    laravel pusher chat

    Clone the project repository by running the command below if you use SSH

    git clone git@github.com:ammezie/laravel-chat.git
    

    If you use https, use this instead

    git clone https://github.com/ammezie/laravel-chat.git
    

    After cloning,run:

    composer install
    

    Duplicate .env.example and rename it .env

    Then run:

    php artisan key:generate
    

    Prerequisites

    Setup Pusher

    If you don't have one already, create a free Pusher account at https://pusher.com/signup then login to your dashboard and create an app.

    Set the BROADCAST_DRIVER in your .env file to pusher:

    BROADCAST_DRIVER=pusher
    

    Then fill in your Pusher app credentials in your .env file:

    PUSHER_APP_ID=xxxxxx
    PUSHER_APP_KEY=xxxxxxxxxxxxxxxxxxxx
    PUSHER_APP_SECRET=xxxxxxxxxxxxxxxxxxxx
    PUSHER_APP_CLUSTER=
    

    Database Migrations

    Be sure to fill in your database details in your .env file before running the migrations:

    php artisan migrate And finally, start the application:

    php artisan serve
    

    and visit http://localhost:8000/ to see the application in action.

    source : https://github.com/ammezie/laravel-chat

    评论

报告相同问题?

悬赏问题

  • ¥15 mars2d在vue3中的引入问题
  • ¥50 h5唤醒支付宝并跳转至向小荷包转账界面
  • ¥15 算法题:数的划分,用记忆化DFS做WA求调
  • ¥15 chatglm-6b应用到django项目中,模型加载失败
  • ¥15 CreateBitmapFromWicBitmap内存释放问题。
  • ¥30 win c++ socket
  • ¥15 C# datagridview 栏位进度
  • ¥15 vue3页面el-table页面数据过多
  • ¥100 vue3中融入gRPC-web
  • ¥15 kali环境运行volatility分析android内存文件,缺profile