You can install the Nova tool via Composer:
composer require --dev laravel/nova-devtoolOnce installed, you can run the following to update NPM's package.json:
npm install --save-dev @laravel/nova-devtoolLaravel Nova Devtool can setup a basic Laravel Nova installation using workbench directory via Orchestra Workbench. To start the installation you can run the following command:
php vendor/bin/testbench nova:devtool setupOnce the installation is completed, you should be able to serve Laravel Nova by running the following command:
composer run serveInstead of manually logging-in the user, you may also change testbench.yaml to automatically authenticate the user:
workbench:
  start: /nova
+ user: [email protected]
  build:To simplify the installation, you can run the following command:
php vendor/bin/testbench nova:devtool installBy default, Laravel Nova ship with JavaScript compiled for production without Vue DevTool. In order to enable Vue DevTool, you need to run the following command:
php vendor/bin/testbench nova:devtool enable-vue-devtoolTo reverse the above action, you need to run the following command:
php vendor/bin/testbench nova:devtool disable-vue-devtoolNova Devtool ships with a generic nova.mix.js instead of publishing the file on each 3rd-party components. For external 3rd-party component you just need to include change the following code in webpack.mix.js:
let mix = require('laravel-mix')
-require('./nova.mix')
+mix.extend('nova', new require('laravel-nova-devtool'))
mix
  .setPublicPath('dist')
  // ...Finally, you can remove the existing nova.mix.js from the component root directory.
