@@ -33,19 +33,18 @@ to a Laravel web application.
3333
3434 .. step:: Install the {+php-extension+}
3535
36- The {+odm-short+} requires the {+php-extension+} to manage MongoDB
36+ {+odm-short+} requires the {+php-extension+} to manage MongoDB
3737 connections and commands.
3838 Follow the `Installing the MongoDB PHP Driver with PECL <https://www.php.net/manual/en/mongodb.installation.pecl.php>`__
39- guide to install {+php-extension+}.
39+ guide to install the {+php-extension+}.
4040
4141 .. step:: Install Laravel
4242
4343 Ensure that the version of Laravel you install is compatible with the
44- version of {+odm-short+}.
44+ version of {+odm-short+}. To learn which versions are compatible,
45+ see the :ref:`laravel-compatibility` page.
4546
46-
47- Then run the following command to install
48- Laravel.
47+ Run the following command to install Laravel:
4948
5049 .. code-block:: bash
5150
@@ -61,29 +60,37 @@ to a Laravel web application.
6160
6261 .. step:: Create a Laravel Application
6362
64- Run the following command to generate a new Laravel web application
65- called ``{+quickstart-app-name+}``:
63+ Run the following command to generate a new Laravel web application
64+ called ``{+quickstart-app-name+}``:
65+
66+ .. code-block:: bash
67+
68+ laravel new {+quickstart-app-name+}
69+
70+ When the installation completes, you should see the
71+ following output:
72+
73+ .. code-block:: none
74+ :copyable: false
6675
67- .. code-block:: bash
76+ INFO Application ready in [{+quickstart-app-name+}]. You can start your local development using:
6877
69- laravel new {+quickstart-app-name+}
78+ ➜ cd {+quickstart-app-name+}
79+ ➜ php artisan serve
7080
71- When the installation completes, you should see the
72- following output:
81+ New to Laravel? Check out our bootcamp and documentation. Build something amazing!
7382
74- .. code-block:: none
75- :copyable: false
83+ .. step:: Add a Laravel Application Encryption Key
7684
77- INFO Application ready in [{+quickstart-app-name+}]. You can start your local development using:
85+ Run the following command to add the Laravel application encryption
86+ key which is required to encrypt cookies:
7887
79- ➜ cd {+quickstart-app-name+}
80- ➜ php artisan serve
88+ .. code-block:: bash
8189
82- New to Laravel? Check out our bootcamp and documentation. Build something amazing!
90+ php artisan key:generate
8391
8492 .. step:: Add {+odm-short+} to the Dependencies
8593
86-
8794 Navigate to the application directory you created in the previous step:
8895
8996 .. code-block:: bash
0 commit comments