@@ -6,21 +6,21 @@ order: 300
66## Development
77
88``` shell
9- php artisan native:serve
9+ php artisan native:run
1010```
1111
1212NativePHP isn't prescriptive about how you develop your application. You can build it in the way you're most comfortable
1313and familiar with, just as if you were building a traditional web application.
1414
1515The only difference comes in the feedback cycle. Instead of switching to and refreshing your browser, you'll need to
16- be serving your application using ` php artisan native:serve ` and refreshing (and in some cases restarting) your
16+ be serving your application using ` php artisan native:run ` and refreshing (and in some cases restarting) your
1717application to see changes.
1818
1919This is known as 'running a dev build'.
2020
21- ### What does the ` native:serve ` command do?
21+ ### What does the ` native:run ` command do?
2222
23- The ` native:serve ` command runs the Electron/Tauri 'debug build' commands, which build your application with various
23+ The ` native:run ` command runs the Electron 'debug build' commands, which build your application with various
2424debug options set to help make debugging easier, such as allowing you to show the Dev Tools in the embedded web view.
2525
2626It also keeps the connection to the terminal open so you can see and inspect useful output from your app, such as logs,
@@ -34,7 +34,7 @@ A major part of the build process, even for debug builds, involves _copying_ you
3434build environment. This means that changes you make to your application code _ will not_ be reflected in your running
3535application until you restart it.
3636
37- You can stop the ` native:serve ` command by pressing ` Ctrl-C ` on your keyboard in the terminal window it's running in.
37+ You can stop the ` native:run ` command by pressing ` Ctrl-C ` on your keyboard in the terminal window it's running in.
3838It will also terminate when you quit your application.
3939
4040## Hot Reloading
@@ -49,7 +49,7 @@ If you're using Vite, hot reloading will just work inside your app as long as yo
4949
5050You can do this easily in Blade using the ` @@vite ` directive.
5151
52- Then, in a separate terminal session to your ` php artisan native:serve ` , from the root folder of your application, run:
52+ Then, in a separate terminal session to your ` php artisan native:run ` , from the root folder of your application, run:
5353
5454``` shell
5555npm run dev
@@ -61,7 +61,7 @@ Which files trigger reloads will depend on your Vite configuration.
6161
6262### ` composer native:dev `
6363
64- You may find the ` native:dev ` script convenient. By default, it is setup to run both ` native:serve ` and ` npm run dev `
64+ You may find the ` native:dev ` script convenient. By default, it is setup to run both ` native:run ` and ` npm run dev `
6565concurrently in a single command:
6666
6767``` shell
@@ -99,7 +99,7 @@ For more details, see the [Databases](/docs/digging-deeper/databases) section.
9999
100100## App Icon
101101
102- The ` native:serve ` and ` native:build ` commands look for the following icon files when building your application:
102+ The ` native:run ` and ` native:build ` commands look for the following icon files when building your application:
103103
104104- ` public/icon.png ` - your main icon, used on the Desktop, Dock and app switcher.
105105- ` public/icon.ico ` - if it exists, it is used as an icon file for Windows (optional).
0 commit comments