# Open Project Laravel

Open the `Laravel API/forumapp` directory using VSCode or any of your favorite development tools for the Laravel project.

<figure><img src="/files/L7jMZ1sItN4AiR4UhUCP" alt=""><figcaption></figcaption></figure>

and edit the *.env* file and configure your local database connection

<figure><img src="/files/uQSgNDaSFP3gDkjYaGZO" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Vt5pAFXS0l5N1brCTrNb" alt=""><figcaption><p>Look for this line in the .env file</p></figcaption></figure>

You also need install a composer dependency for *JWT Token Auth* by running this command:

```
composer require tymon/jwt-auth
```

Please refer to this link for further explanation about how to integrate JWT Authentication on laravel :&#x20;

<https://www.positronx.io/laravel-jwt-authentication-tutorial-user-login-signup-api/>

Migrate the database using this command

```
php artisan migrate
```

After everything is set up, you can try running this command to see if the Laravel project can be run in your local computer

```
php artisan serve

// or to make it accessible from your ios device
// run this command instead

php artisan serve --host 0.0.0.0 
```

You can check if the Laravel project is successfully running by typing this url into your browser (adjust the port with your server configuration)

```
http://localhost:8080/
```

Import the PostMan API collection file to look at all the list of API needed for the project. Refer to this link for the Postman installation : <https://www.postman.com/downloads/>

<figure><img src="/files/9uGxpUPfV9rVvNcQXWC6" alt=""><figcaption><p>Postman Collection</p></figcaption></figure>


---

# 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://tyegah.gitbook.io/forum-app-ios/overview/getting-started/open-project-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.
