Skip to content

Repositories

Marcin Halak (Versoo) edited this page Apr 10, 2018 · 2 revisions

Command: larapi:repository

Command to create Repository in resource directory, using for that a resource name.

php artisan larapi:repository {Resource}

To create Repository in exists resource you can use a name argument. It will be create Repository for a resource with your custom name.

php artisan larapi:repository {Resource} {Name}

Arguments:

  • Resource - Name of resource
  • Name - Optional: Name of Repository. If is empty it will be use resource as name of repository.

Options:

  • -m, --model=MODEL - Name a custom model for repository.
  • --force - Force to create repository, overwrite if exists
Clone this wiki locally