@@ -33,19 +33,18 @@ to a Laravel web application.
33
33
34
34
.. step:: Install the {+php-extension+}
35
35
36
- The {+odm-short+} requires the {+php-extension+} to manage MongoDB
36
+ {+odm-short+} requires the {+php-extension+} to manage MongoDB
37
37
connections and commands.
38
38
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+}.
40
40
41
41
.. step:: Install Laravel
42
42
43
43
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.
45
46
46
-
47
- Then run the following command to install
48
- Laravel.
47
+ Run the following command to install Laravel:
49
48
50
49
.. code-block:: bash
51
50
@@ -61,29 +60,37 @@ to a Laravel web application.
61
60
62
61
.. step:: Create a Laravel Application
63
62
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
66
75
67
- .. code-block:: bash
76
+ INFO Application ready in [{+quickstart-app-name+}]. You can start your local development using:
68
77
69
- laravel new {+quickstart-app-name+}
78
+ ➜ cd {+quickstart-app-name+}
79
+ ➜ php artisan serve
70
80
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!
73
82
74
- .. code-block:: none
75
- :copyable: false
83
+ .. step:: Add a Laravel Application Encryption Key
76
84
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:
78
87
79
- ➜ cd {+quickstart-app-name+}
80
- ➜ php artisan serve
88
+ .. code-block:: bash
81
89
82
- New to Laravel? Check out our bootcamp and documentation. Build something amazing!
90
+ php artisan key:generate
83
91
84
92
.. step:: Add {+odm-short+} to the Dependencies
85
93
86
-
87
94
Navigate to the application directory you created in the previous step:
88
95
89
96
.. code-block:: bash
0 commit comments