# Prepare your Laravel project

Nothing special is required to deploy to SiteGround. You should be able to publish your locally developed project directly into SiteGround Shared servers.

{% hint style="info" %}
This process does not include any front-end build process on the server as I prefer to do this within my development environment and the commit built assets.

If you want to do the same with Laravel 9 and Vite, make sure to remove `/public/build` from the .gitignore file in the root of your project.
{% endhint %}

### Version Control

This guide relies on deploying from a GIT flavoured repository (Gitlab / Github / BitBucket) so make sure you are committing your source code when it is ready to be deployed.  In the [deployment script](/siteground-shared-hosting/create-a-deployment-script.md) you will specify the name of the branch you wish to deploy from so you could deploy from *main*/*master* or *deploy* for instance.

{% hint style="danger" %}
Your **.env** file should **NOT** be part of your committed code.
{% endhint %}


---

# 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://laravelsharedhosting.novate.co.uk/siteground-shared-hosting/prepare-your-laravel-project.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.
