baklysystems / laravel-chat-messenger

A laravel Chat that is just like facebook chat
MIT License
13 stars 11 forks source link

Custom Route? #7

Closed codiiv closed 6 years ago

codiiv commented 6 years ago

I really like this package a looot. However, I would like to integrate it in an app that has a custom URL structure. Something like /home/xxx/messenger/t/USERID but I can't make it happen. Any pointers?

elbakly commented 6 years ago

We can update the package with the file of src/LaravelMessengerServiceProvider.php and publish the route and by then you can overwrite this freely, I will find sometime to that and update the package later today

codiiv commented 6 years ago

That'd be really nice. I can can contribute to the package later , but currently I am fully consumed in a project but once complete, I will do my part :)

elbakly commented 6 years ago

@codiiv you can do composer require baklysystems/laravel-chat-messenger:1.6 and then php artisan vendor publish

this will add a messenger.php to your routes and this is where you can customize your routes

also dont forget to add this line to your web.php include('messenger.php');

codiiv commented 6 years ago

Thanks buddy. I came across a few other things but I made it work fine. I will commiy my edits this coming week

elbakly commented 6 years ago

Great will be waiting to check that

codiiv commented 6 years ago

@elbakly Have a look at this : https://github.com/unicodeveloper/laravel-emoji I am thinking of integrating it in the plugin !

elbakly commented 6 years ago

Sure please do, and I will merge it right away