I mean that you connect the Ps4 to the laptop and then play on it.
Please no troll contributions, I'm not very familiar with this area
Yes by Hdmi but unfortunately I don't know more exactly.
What exactly do you mean You can use your laptop as a screen if you mean that
Yes, that's what I mean
As a rule, only HDMI-Out connections are installed in laptops. For your project to work, you would need an HDMI-In connection.
In most laptops there's actually only one HDMI out installed, so this is not possible natively.
You can still do that with a capture card
Few laptops have HDMI inputs, most only have outputs.
So no, probably won't be.
But you can use https://remoteplay.dl.playstation.net/remoteplay/lang/de/index.html (Windows & macOS) or https://github.com/...g3r/chiaki (GNU / Linux, Windows & macOS).