Skip to content

Commit 2d5c8de

Browse files
committed
Resolve several issues with documentation
1 parent 5288dbb commit 2d5c8de

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

docs/configuration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ If you followed the steps in [Getting Started](./getting-started.md) you should
1010

1111
Due to the nature of how ExpressionEngine is loaded through Coilpack you can set variables in your Laravel `.env` and access those values inside of your ExpressionEngine `config.php` file. This can help keep your secrets out of version control and in one central location. We recommend updating your `config.php` to access database credentials and other secrets from the `$_ENV` global.
1212

13+
Certain configuration variables in ExpressionEngine will be overwritten by your Laravel environment and config variables. This is a list of current overrides:
14+
15+
| Environment | Config | Overwrites Config | Overwrites Control Panel Settings |
16+
| ----------- | ------ | ----------------- | --------------------------------- |
17+
| APP_URL | 'app.url' | $config['base_url'] | URL and Path > Default base URL |
18+
| N/A | 'coilpack.base_path' | $config['base_path'] | URL and Path > Default base path |
19+
20+
1321
## Accessing ExpressionEngine Config Values
1422

1523
After Coilpack bootstraps ExpressionEngine you will be able to access any of your ExpressionEngine `system/user/config.php` values through the Laravel `config()` helper. For example to get your `app_version` you could call `config('coilpack.expressionengine.app_version')` within your Laravel application.

docs/getting-started.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Now that you have a Laravel Project setup it is a good time to edit the values i
6060
Inside of your Laravel project, you will need to update your project to use the Coilpack package.
6161

6262
```
63+
cd project-name
64+
6365
composer require expressionengine/coilpack:0.x-dev
6466
```
6567

docs/guides/using-twig-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Create a new file at `/ee/system/user/templates/default_site/example.group/entry
3232
</head>
3333
<body>
3434
<h1>{{ entry.title }}</h1>
35-
<span>Published on {{ entry.date }}
35+
<span>Published on {{ entry.entry_date }}</span>
3636
<img src="{{ entry.featured_image }}" />
3737
{{ entry.page_content | raw}}
3838
</body>

docs/routing.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Coilpack works by bootstrapping ExpressionEngine inside of a Laravel application
77
Coilpack sets up a few special routes for you:
88

99
- `/admin.php` - Access the ExpressionEngine Control Panel
10-
- `/graphql` - GraphQL Data endpoint
11-
- `/graphiql` - Interactive GraphQL testing endpoint
10+
- `/graphql` - GraphQL Data endpoint when [GraphQL is enabled](./graphql#enabling-graphql-support)
11+
- `/graphiql` - Interactive GraphQL testing endpoint when [GraphiQL is enabled](./graphql#tools)
1212

1313
## Asset Handling
1414

@@ -58,7 +58,3 @@ protected $routeMiddleware = [
5858
...
5959
];
6060
```
61-
62-
## Laravel Template Routes
63-
64-
Documentation Coming Soon...

0 commit comments

Comments
 (0)