LinuxCommandLibrary

php-artisan

laravel framework's command line interface

TLDR

List commands

$ php artisan list
copy
Start development server
$ php artisan serve
copy
Run migrations
$ php artisan migrate
copy
Generate controller
$ php artisan make:controller [UserController]
copy
Generate model with migration
$ php artisan make:model [User] -m
copy
Clear cache
$ php artisan cache:clear
copy

SYNOPSIS

php artisan command [options] [arguments]

DESCRIPTION

php artisan is the Laravel framework's command line interface. Provides commands for common development tasks like code generation, database migrations, caching, and server management.

PARAMETERS

serve

Start development server.
migrate
Run database migrations.
make:controller name
Generate controller.
make:model name
Generate model.
make:migration name
Generate migration.
cache:clear
Clear application cache.
config:cache
Cache configuration.
route:list
List all routes.
tinker
Start interactive shell.

SEE ALSO

php(1), composer(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community