Change laravel tutorial for clarity
@@ -221,6 +221,23 @@ Add the command to initialize the database:
mysqladmin -u root shutdown
+Add a the php mysql module to our container:
+
+.. code-block:: yaml
+
+ containers:
+ laravel:
+ # ...
+ setup:
+ - !Ubuntu xenial
+ - !UbuntuUniverse
+ - !Install
+ - php-dom
+ - php-mbstring
+ - php-mysql # mysql module
+ - !Env { <<: *env }
+ - !ComposerDependencies
+
Now change our ``run`` command to start the database alongside our project:
.. code-block:: yaml
@@ -651,23 +668,6 @@ Change ``database/seeds/DatabaseSeeder.php`` to include ``ArticleSeeder``:
}
}
-Add a the php mysql module to our container:
-
-.. code-block:: yaml
-
- containers:
- laravel:
- # ...
- setup:
- - !Ubuntu xenial
- - !UbuntuUniverse
- - !Install
- - php-dom
- - php-mbstring
- - php-mysql
- - !Env { <<: *env }
- - !ComposerDependencies
-
Change the ``run`` command to execute the migrations and seed our database:
.. code-block:: yaml
