Laravel dynamic display file content

76 Views Asked by At

I have a terminal that logs on a file linked in my app /storage/logs/output.log.

I have no problem displaying it inside my view, the only problem is that I want the content of this file to update dynamically, without doing a setTimeOut() every X seconds like a tail -f.

I thought of using an event system, like cat, but I don't know how to manage it.

Can you help me ?

Thanks

0

There are 0 best solutions below