I'm loading project in localhost, my admin asked me to convert laravel 5.6 to .exe along with mysql.
I'm new in this, with no idea. Can any expert guide me....
Thanks in advance.
I'm loading project in localhost, my admin asked me to convert laravel 5.6 to .exe along with mysql.
I'm new in this, with no idea. Can any expert guide me....
Thanks in advance.
I'm not sure your admin should be asking you to convert a Laravel project into an exe but let's humor him for a moment:
Laravel is a framework built on top of the PHP language. While there are tools out there to convert PHP scripts to standalone .exe files:
https://www.exeoutput.com/ https://www.exeoutput.com/php-exe
I highly doubt that it will work for a framework like Laravel.
PHP + Laravel + MySQL
is meant to be run on a PHP capable environment. What you need to do is install PHP, MySQL, Composer and Laravel
on Windows
and run your web application from that environment.
Since your "admin" and not your "project manager" asked you to make a standalone .exe, it makes me think that maybe he wanted to deploy, test and tweak your application on a bunch of different PCs, web servers or cloud environments and he thought it would be convenient to have a single deployable .exe instead of having to install PHP, MySQL, Composer, Laravel, populate the Databases and configure the web, DB servers every time he wanted to deploy and test your application.
If this is the case your best bet would be to create one or more docker containers. and hand it to your admin.
https://www.docker.com https://www.docker.com/what-container
I'm again surprised that the admin did not ask you to dockerize in the first place and instead asked you to make a windows executable out of a web application built on top of a PHP framework and an embedded MySQL database.
Also see :
https://laracasts.com/discuss/channels/general-discussion/laravel-mysql-wamp-server-project-to-exe
laravel executable application
Edit: I just realized that if you are going to try to spend time converting your application into an exe by following one of the methods in this question about convert php scripts to exe, you could perhaps at least bypass the Laravel dependency by converting the files in the Laravel storage directory instead of your source code, which contains pure PHP instead of blade templates, which most definitely will not be converted by any PHP to exe tools.
i.e.: Blade files may contain @foreach
whereas the storage directory will contain transpiled pure PHP code which would replace the @foreach
with
<?php $__currentLoopData = $getusergroups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $getusergroupss): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($getusergroupss->id); ?>"><?php echo e($getusergroupss->title); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
Still a long shot though.
If you want to test the laravel project in Desktop mode you can try with this https://github.com/cztomczak/phpdesktop
it use sqlite. So,you need to change your database eg.mysql to sqlite And you can copy and paste your project in "www" folder and try it...
It work for me.... At least you can show your admin with this and you can look more in here... https://bitbucket.org/chromiumembedded/cef/overview