DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Creating Laravel Desktop Apps Part 1: Setup
Takunda Madechangu
Takunda Madechangu

Posted on

Creating Laravel Desktop Apps Part 1: Setup

Hello there? How are you? Ever wondered if it was possible to turn that lovely Laravel project of yours into a desktop app. Well this tutorial if for you.

I will show you guys how to turn a Laravel app into a desktop app. Lets dive in...

Step 1: Download Laravel Electron

If you want to turn Laravel into a Mac Desktop App, then type the following:

git clone https://github.com/blackgeneration/Laravel-Electron-For-MAC-OS.git

If you want to turn laravel into a Windows Desktop App, the type the following:

git clone https://github.com/laravelarticle/laravel-electron.git

Theses repos are almost the same except for a few differences(platform specific tweaks)

Step 2: Install Dependencies

Navigate into the project (cd folder_name) and install dependencies:

npm install OR yarn install

This will install all required dependencies...

Step 3: Run the project

To run the project simple type:

npm start OR yarn start

For MAC OS users preface these commands with sudo like this:

sudo npm start OR sudo yarn start

This should start your project successfully....

You should see something like

Laravel Version So and So
PHP Version So and So

:D

By the way the Laravel version used is 6 and PHP version is 7.2

Have fun!

Top comments (2)

Collapse
 
camilo profile image
Camilo Payan

Cool! I just saw an interesting application that runs on Laravel and that I'd prefer not to host, so I'll check this out.

Collapse
 
takunda profile image
Takunda Madechangu

Ok cheers

50 CLI Tools You Can't Live Without

The top 50 must-have CLI tools, including some scripts to help you automate the installation and updating of these tools on various systems/distros.