Laraboot/Cli
CommunityExtendig
1.0.0
1.0.0
  • Introduction
  • Requirements
  • Getting started
  • F.A.Q
  • Concepts
    • Workspace
    • laraboot.json
    • Build tasks
      • Core tasks
      • Community tasks
  • Usage
    • Create a project
    • Configure
      • Data model
      • Configure
      • Starter kits
      • Views and layouts
    • Build your project
    • Run your project
    • Share your project
  • Build
    • Process
    • Hooks
  • Tutorials
    • Create a laraboot application
    • Collaborative
  • Extending
    • Create a build task
    • Github actions
    • Publish a build task
Powered by GitBook
On this page
  • Install
  • Create a new data model
  • Relationships

Was this helpful?

  1. Usage
  2. Configure

Data model

Install

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

Create a new data model

This functionality is provided by core task @core/laravel-model and hence it must be enabled before using it.

Create a new model is a fairly straightforward process:

laraboot model add <name>

You will be prompted with questions that will help laraboot understand the structure of the model.

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

Relationships

Pending.

PreviousConfigureNextConfigure

Last updated 3 years ago

Was this helpful?