-
Notifications
You must be signed in to change notification settings - Fork 143
docs: add code block language for fix website #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,8 +25,8 @@ These instructions assume that you have already [installed the CodeIgniter 4 app | |
| Installation is done through [Composer](https://getcomposer.org). The example assumes you have it installed globally. | ||
| If you have it installed as a phar, or otherwise you will need to adjust the way you call composer itself. | ||
|
|
||
| ``` | ||
| > composer require codeigniter4/shield | ||
| ```console | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shell |
||
| composer require codeigniter4/shield | ||
| ``` | ||
|
|
||
| ### Troubleshooting | ||
|
|
@@ -35,29 +35,29 @@ If you have it installed as a phar, or otherwise you will need to adjust the way | |
|
|
||
| If you get the following error: | ||
|
|
||
| ``` | ||
| Could not find a version of package codeigniter4/shield matching your minimum-stability (stable). | ||
| Require it with an explicit version constraint allowing its desired stability. | ||
| ```console | ||
| Could not find a version of package codeigniter4/shield matching your minimum-stability (stable). | ||
| Require it with an explicit version constraint allowing its desired stability. | ||
| ``` | ||
|
|
||
| 1. Add the following to change your [minimum-stability](https://getcomposer.org/doc/articles/versions.md#minimum-stability) in your project `composer.json`: | ||
|
|
||
| ```json | ||
| "minimum-stability": "dev", | ||
| "prefer-stable": true, | ||
| "minimum-stability": "dev", | ||
| "prefer-stable": true, | ||
| ``` | ||
|
|
||
| 2. Or specify an explicit version: | ||
|
|
||
| ```console | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shell |
||
| > composer require codeigniter4/shield:dev-develop | ||
| composer require codeigniter4/shield:dev-develop | ||
| ``` | ||
|
|
||
| The above specifies `develop` branch. | ||
| See https://getcomposer.org/doc/articles/versions.md#branches | ||
|
|
||
| ```console | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shell |
||
| > composer require codeigniter4/shield:^1.0.0-beta | ||
| composer require codeigniter4/shield:^1.0.0-beta | ||
| ``` | ||
|
|
||
| The above specifies `v1.0.0-beta` or later and before `v2.0.0`. | ||
|
|
@@ -70,7 +70,7 @@ If you get the following error: | |
| 1. Run the following command. This command handles steps 1-5 of *Manual Setup* and runs the migrations. | ||
|
|
||
| ```console | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shell |
||
| > php spark shield:setup | ||
| php spark shield:setup | ||
| ``` | ||
|
|
||
| ### Manual Setup | ||
|
|
@@ -120,7 +120,7 @@ your project. | |
| 5. **Migration** Run the migrations. | ||
|
|
||
| ```console | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shell |
||
| > php spark migrate --all | ||
| php spark migrate --all | ||
| ``` | ||
|
|
||
| #### Note: migration error | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.