Skip to content

First steps

This page takes you from a fresh install to an open app. It ends with a short map of the window.

  • Mortise, installed. See Installation.
  • A Laravel app of your own that uses nwidart/laravel-modules, with at least two modules. The app folder holds artisan and a composer.lock that lists the package. Run composer install in it first if you have not.
  • A way to run PHP in that app: Herd, Sail, Docker or a php on your path. Mortise reads the app without PHP, but its commands need it.
  1. Start Mortise. The window reads No apps yet.

    The first window of Mortise: No apps yet, with the button Add app folderThe first window of Mortise: No apps yet, with the button Add app folder
  2. Select Add app folder. The Add app panel opens.

    The Add app panel before a folder is chosen: the field App folder and the button Choose folderThe Add app panel before a folder is chosen: the field App folder and the button Choose folder
  3. Select Choose folder and pick the folder of your app: the one that holds artisan. You can also type the path into the field and press Enter.

    Mortise reads the folder. Under Found in this folder it shows the Laravel version, the modules and the git branch. The note says “read from disk, nothing run”.

  4. Under Run PHP with, choose how PHP runs for this app: Herd, Sail, Docker or Custom. Mortise proposes one when it finds a Herd site, Sail or a compose file. If you run php directly, choose Custom; the field then reads php artisan.

  5. Select Test. Mortise runs the line under the field, artisan --version, in the app folder. The answer shows next to Answered. If the test fails, the sentence under it says why; Choose the PHP for an app covers each choice.

    The choice Run PHP with: Herd, Sail, Docker and Custom, the command line under it and the Test buttonThe choice Run PHP with: Herd, Sail, Docker and Custom, the command line under it and the Test button
  6. Leave Runtime, optional empty for now. Connect the actuator of an app fills it later.

  7. Select Add followed by the name of your app, or press Cmd Enter on macOS (Ctrl Enter on Windows and Linux).

A message reads “Added”, the name of the app and the number of modules read. The app gets a tile in the rail on the left.

The Mortise window with the app shop-api open: the rail of apps, the module index with seven modules and the Summary of All modulesThe Mortise window with the app shop-api open: the rail of apps, the module index with seven modules and the Summary of All modules
Part Where What it holds
Title bar Top The entry to the command palette, and the name of the open app
Rail Left edge One tile per app. The tile with a plus, Add app, adds another
Module index Next to the rail All modules, then one row per module. / filters it
Workspace Middle The tabs Summary, Boundary, Generate, Actions and Metrics, keys 1 to 5
Runner drawer Bottom The output of the command that runs. Ctrl ` shows or hides it

A few keys help from the start. On macOS use Cmd in place of Ctrl.

Key Does
Ctrl K Opens the command palette
J K Selects the next or previous module
F Opens the findings of the app
? Shows every shortcut

The window and Keyboard describe each part and each key.