laravel-reactphp icon indicating copy to clipboard operation
laravel-reactphp copied to clipboard

Documentation Request

Open joshhornby opened this issue 10 years ago • 2 comments

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

joshhornby avatar Apr 07 '15 20:04 joshhornby

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

hopewise avatar Apr 07 '16 14:04 hopewise

@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.

ctf0 avatar Dec 30 '16 19:12 ctf0