Laravel Redirects me to index.php and shows the code in the browser

we tried to collaborate with laravel project. I pull the project from gitlab and set it up. But when I tried to open it in browser it redirects me to index.php instead of the login page. And it shows me the code of index.php in the browser. I treid search for answers but can’t find any similar. I hope someone can help me.

Your localhost doesnt have a php engine configured.

If you’re on Windows your best bet would be to install and use XAMPP.