You can do stuff like that have a Google for PHP Encode or PHP Obfuscation. Some do require modules to be installed on the server that they are running on. Here is a quick list although I am sure there are others:
Just a note of concern, make sure you aren't breaching any licenses if your are re-distributing your project as this would be consider a binary form. Many licenses that packages are released under may require you to provide source code or include a copy-right notice, or something else. Laravel itself is released under MIT but other packages that Laravel depends on, or that you have installed, may not. In your project root you can run the command composer licenses which will give you a list of all the packages installed in your project and which license they use.
For example Laravel makes use of several Symfony packages which is released under the BSD 3-Clause licenses and the 2nd clause is "Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution."