# Laravel setup

## Create a Laravel application

1. In the Application section click the Create application button
2. Choose the virtual machine where you want it deployed
3. Select Laravel from the Framework tab
4. Provide a meaninful name
5. Click Create Application

## Create a custom deployment

1. Add a custom repository in your organization or connect your git account
2. Type in the name of the repository
3. Select the repository type: Public or Private
4. Set the repository address in the remote url field
5. Create a new deployment
6. Deploy Path on server/s - take the path from the Overview section of the application you just installed
7. Application user - the ftp username in the Overview section of the application you just installed
8. Select the deployment servers
9. Configure the application secrets

Deployment config file sample

```
.env.example
```

Deployment config file

```
.env
```

Deployment config file format

```
bash
```

Generate APP\_KEY

```
php artisan key:generate --show
```

1. Add deploy steps


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devops.dovelopers.com/bunnyshell/laravel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
