nazo / laravel-reactphp

ReactPHP Server on Laravel 5.0
49 stars 24 forks source link

Documentation Request #1

Open joshhornby opened 9 years ago

joshhornby commented 9 years ago

I have been looking into using React and Laravel together, do you have any docs for this package on how best to set it up in an example app? Or how it should be used?

Thanks

hopewise commented 8 years ago

Yea, isn't there a minimal example to see?

ctf0 commented 7 years ago

@joshhornby am in the same boat as you however from what i understood from https://github.com/Saoneth/laravel-reactphp/blob/master/src/Console/Commands/ReactServe.php and https://github.com/Saoneth/laravel-reactphp/blob/master/src/Server.php

that react by it self does nothing, it only listen for a host & port and then start to handle the request, maybe am wrong but if u checked the main artisan serve you will find that it loads the server.php file which load the public/index.php and therefore you get something, so the way to get this to work is

php artisan serve

# in another tab
php artisan react-serve

again am not sure but this is what i got so far.