Skip to content

Commit 9ad1b28

Browse files
authored
Merge pull request #1999 from brefphp/document-laravel-tinker
Document running Laravel Tinker
2 parents a786031 + d93073f commit 9ad1b28

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

docs/laravel/getting-started.mdx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,35 @@ For example, to execute an `artisan` command on Lambda, run the command below:
144144
For example:
145145

146146
```bash
147-
bref command "route:list"
147+
bref command "route:list --help"
148148
```
149149
</Tab>
150150
</Tabs>
151151

152152
For more details follow [the "Console" guide](../runtimes/console.mdx).
153153

154+
### Laravel Tinker
155+
156+
If you are using [Bref Cloud](/cloud), you can start an interactive Tinker shell on AWS Lambda from your machine by running:
157+
158+
```bash
159+
bref tinker
160+
```
161+
162+
The usual flags work, for example to run Tinker in the production environment:
163+
164+
```bash
165+
bref tinker --env=production
166+
```
167+
168+
![](./tinker.png)
169+
170+
<Callout>
171+
Make sure to update the `bref/laravel-bridge` package to version 2.7 or higher to use this feature.
172+
</Callout>
173+
174+
If you are not using Bref Cloud, you can check out this community package: [sls-tinker](https://github.com/datpmwork/sls-tinker).
175+
154176
## Inertia
155177

156178
Laravel with Inertia runs without issue, like any other website. Follow the [Websites guide](../use-cases/websites.mdx) to learn how to deploy a Laravel with assets with Bref.

docs/laravel/tinker.png

513 KB
Loading

0 commit comments

Comments
 (0)