# laravel-chat
Build a chat app with Laravel, Vue.js and Pusher. Follow the tutorial [https://pusher.com/tutorials/chat-laravel](https://pusher.com/tutorials/chat-laravel)
## Getting Started
Clone the project repository by running the command below if you use SSH
```bash
git clone git@github.com:ammezie/laravel-chat.git
```
If you use https, use this instead
```bash
git clone https://github.com/ammezie/laravel-chat.git
```
After cloning,run:
```bash
composer install
```
Duplicate `.env.example` and rename it `.env`
Then run:
```bash
php artisan key:generate
```
### Prerequisites
#### Setup Pusher
If you don't have one already, create a free Pusher account at [https://pusher.com/signup](https://pusher.com/signup) then login to your dashboard and create an app.
Set the `BROADCAST_DRIVER` in your `.env` file to **pusher**:
```txt
BROADCAST_DRIVER=pusher
```
Then fill in your Pusher app credentials in your `.env` file:
```txt
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:
```bash
php artisan migrate
```
And finally, start the application:
```bash
php artisan serve
```
and visit [http://localhost:8000/](http://localhost:8000/) to see the application in action.
## Built With
* [Pusher](https://pusher.com/) - APIs to enable devs building realtime features
* [Laravel](https://laravel.com) - The PHP Framework For Web Artisans
* [Vue.js](https://vuejs.org) - The Progressive JavaScript Framework
## Acknowledgments
* [Bootsnipp chat snippet](http://bootsnipp.com/snippets/featured/collapsible-chat-widget)
没有合适的资源?快使用搜索试试~ 我知道了~
在Laravel中构建一个聊天应用程序_JavaScript_PHP_下载.zip
共100个文件
php:61个
gitignore:10个
js:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 184 浏览量
2023-04-24
14:15:27
上传
评论
收藏 660KB ZIP 举报
温馨提示
在Laravel中构建一个聊天应用程序_JavaScript_PHP_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
在Laravel中构建一个聊天应用程序_JavaScript_PHP_下载.zip (100个子文件)
artisan 2KB
web.config 914B
app.css 672KB
glyphicons-halflings-regular.eot 20KB
.env.example 518B
.gitattributes 61B
.gitignore 117B
.gitignore 103B
.gitignore 23B
.gitignore 14B
.gitignore 14B
.gitignore 14B
.gitignore 14B
.gitignore 14B
.gitignore 14B
.gitignore 9B
.htaccess 553B
favicon.ico 0B
app.js 1.26MB
bootstrap.js 1KB
app.js 1KB
webpack.mix.js 555B
composer.json 1KB
package.json 1KB
mix-manifest.json 66B
LICENSE 1KB
yarn.lock 148KB
composer.lock 119KB
README.md 2KB
app.php 9KB
validation.php 6KB
session.php 6KB
app.blade.php 4KB
mail.php 4KB
register.blade.php 3KB
reset.blade.php 3KB
database.php 3KB
auth.php 3KB
login.blade.php 3KB
cache.php 3KB
queue.php 2KB
filesystems.php 2KB
Kernel.php 2KB
email.blade.php 2KB
Handler.php 2KB
RegisterController.php 2KB
index.php 2KB
broadcasting.php 2KB
app.php 2KB
RouteServiceProvider.php 1KB
ChatsController.php 1KB
MessageSent.php 1KB
view.php 1020B
services.php 980B
ResetPasswordController.php 952B
LoginController.php 945B
2017_02_11_223846_create_jobs_table.php 909B
ForgotPasswordController.php 834B
Kernel.php 819B
passwords.php 786B
ModelFactory.php 761B
2014_10_12_000000_create_users_table.php 746B
User.php 725B
2014_10_12_100000_create_password_resets_table.php 692B
2017_02_11_202057_create_messages_table.php 684B
chat.blade.php 677B
auth.php 617B
EventServiceProvider.php 604B
AuthServiceProvider.php 575B
server.php 563B
web.php 563B
autoload.php 559B
console.php 553B
pagination.php 534B
api.php 528B
RedirectIfAuthenticated.php 523B
SendChatMessage.php 481B
channels.php 478B
AppServiceProvider.php 473B
ExampleTest.php 452B
Message.php 423B
BroadcastServiceProvider.php 380B
CreatesApplication.php 380B
Controller.php 361B
ExampleTest.php 353B
TrimStrings.php 342B
VerifyCsrfToken.php 311B
EncryptCookies.php 300B
DatabaseSeeder.php 241B
TestCase.php 163B
_variables.scss 873B
app.scss 201B
glyphicons-halflings-regular.svg 106KB
glyphicons-halflings-regular.ttf 44KB
robots.txt 24B
ChatForm.vue 861B
ChatMessages.vue 528B
glyphicons-halflings-regular.woff 23KB
glyphicons-halflings-regular.woff2 18KB
phpunit.xml 1KB
共 100 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功