Skip to content

Latest commit

 

History

History
147 lines (146 loc) · 2.45 KB

commands.md

File metadata and controls

147 lines (146 loc) · 2.45 KB

Commands

WebServer

  • Start LaraGram Development Server

If you are working on a local host, it is better to use this web server. Otherwise, Apache, Nginx, etc. web servers are a better option.

php laragram serve

  • Start Local Api Server
php laragram start:apiserver

  • Start OpenSwoole Server
php laragram serve --openswoole

Manage Webhook

  • Set Webhook
php laragram webhook:set

  • Delete Webhook
php laragram webhook:delete

  • Drop Pending Updates
php laragram webhook:drop

  • Show Webhook info
php laragram webhook:info

Manage Dependency

  • Install Eloquent
php laragram install:eloqunet

  • Remove Eloquent
php laragram remove:eloqunet

  • Install OpenSwoole
php laragram install:openswoole

  • Remove OpenSwoole
php laragram remove:openswoole

  • Clean Vendor
    • Remove all extra dependencies
php laragram clear:vendor

Manage Resource

  • Create Resource
php laragram make:resource my-resource

Manage API Controller

  • Create Api Controller
php laragram make:api ApiName

Manage Model

  • Create MySQL Model
php laragram make:model User

  • Create Json Model
php laragram make:json-model User

Manage Migrations

  • Create MySQL migration for create table
php laragram make:migration {migration_name} --create={table_name}

  • Create MySQL migration for edit table
php laragram make:migration {migration_name} --table={table_name}

  • Create Json migration for create table
php laragram make:json-migration {migration_name} --create={table_name}

  • Create Json migration for edit table
php laragram make:json-migration {migration_name} --table={table_name}

  • Migrate MySQL migrations
php laragram migrate

  • Migrate Json migrations
php laragram json-migrate

Manage Factories

  • Create MySQL factory
php laragram make:factory {factory_name}

Manage Seeders

  • Create MySQL seeder
php laragram make:seeder {seeder_name}

Manage Service Providers

  • Create service provicer
php laragram make:provider {provider_name}

Manage Commands

  • Create Command
php laragram make:command {command_name}