# Data model

## Install

```
laraboot task add @core/laravel-model --format=file -vvv
```

## Create a new data model

{% hint style="info" %}
This functionality is provided by core task `@core/laravel-model` and hence it must be enabled before using it.
{% endhint %}

Create a new model is a fairly straightforward process:

```
laraboot model add <name>
```

{% hint style="info" %}
You will be prompted with questions that will help laraboot understand the structure of the model.
{% endhint %}

Once you're done defining your model,`@core/laravel-model` will detect it and create Laravel models for your application.

## Relationships

Pending.


---

# 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://onevarez.gitbook.io/cli/usage/configure-1/data-model-1.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.
