Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spatie/ray
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 8, 2021
2 parents 7f415ed + 0a4dc1d commit da23ede
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions docs/getting-started/configuring-ray.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,21 @@ return [
'local_path' => null,
];
```
For Laravel projects you can run an artisan command to publish the config file in to the project root.

```bash
php artisan ray:publish-config
```

You can also add an option for 'docker' or 'homestead' to give a base configuration for those dev environments.

For Laravel projects use this template:
```bash
php artisan ray:publish-config --docker
//or
php artisan ray:publish-config --homestead
```

Alternatively for Laravel projects you can create a ray.php file and use the following template:

```php
// save this in a file called "ray.php" in the root directory of your project; not in the Laravel "config" directory
Expand Down Expand Up @@ -64,6 +76,7 @@ return [
/*
* The host used to communicate with the Ray app.
* For usage in Docker on Mac or Windows, you can replace host with 'host.docker.internal'
* For usage in Homestead on Mac or Windows, you can replace host with '10.0.2.2'
*/
'host' => 'localhost',

Expand All @@ -74,7 +87,6 @@ return [
];
```


When developing using Docker, the Ray host should point to the internal IP of your Docker host by using 'host.docker.internal'.

```php
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/discovering-the-ray-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Discovering the Ray app
weight: 5
---

Ray is a very simple app to use. You can use any of the `ray` calls that are documented on the [other](/docs/ray/v1/usage/in-a-framework-agnostic-project) [pages](/docs/ray/v1/usage/in-laravel) in this section.
[Ray](https://myray.app) is a very simple app to use. You can use any of the `ray` calls that are documented on the [other](/docs/ray/v1/usage/in-a-framework-agnostic-project) [pages](/docs/ray/v1/usage/in-laravel) in this section.

![screenshot](/docs/ray/v1/images/empty.jpg)

Expand Down

0 comments on commit da23ede

Please sign in to comment.