-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (39 loc) · 1.4 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.DEFAULT_GOAL := help
help:
@echo "Helper tasks for managing application via Makefile. Please input a make command."
install: ## Install composer dependencies
composer install
test:
php artisan test $(ARGS)
phpunit: ## Run phpunit test suite with stack trace
vendor/bin/phpunit -v
migrate: ## Migrate database
php artisan migrate
migrate-fresh: ## Recreate database fresh (drop all tables and migrate)
php artisan migrate:fresh --seed
migrate-seed: ## Migrate and seed database
php artisan migrate
php artisan db:seed
migrate-rollback: ## Rollback database migration
php artisan migrate:rollback
st: ## Serve application
php artisan serve
tinker: ## Tinker REPL
php artisan tinker
composer-dump-autoload: ## Run composer dump-autoload
composer dump-autoload
composer-require: ## install or update latest versions of package dependencies
composer require $(ARGS)
composer-install: ## install packages specified in composer lock file
composer install $(ARGS)
composer-update: ## update packages to latest version, as stated in composer json
composer update $(ARGS)
route: ## list routes --filter via name, path or method
php artisan route:list
clear-config-cache: ## clear configuration cache
php artisan config:clear
clear-application-cache: ## clear application cache
php artisan cache:clear
clear-cache: ## clear config and application cache
make clear-config-cache
make clear-application-cache