This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# exit with error | |
set -e | |
# Generate an application key. Re-cache. | |
php artisan config:cache | |
php artisan config:clear | |
php artisan cache:clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- composer_validate | |
- static_analysis | |
- tests | |
# overlay2 storage driver is more fast, default is vfs. | |
variables: | |
DOCKER_DRIVER: overlay2 | |
cache: | |
paths: | |
- vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
php artisan tinker | |
$controller = app()->make('App\Http\Controllers\MyController'); | |
app()->call([$controller, 'myMethodName'], []); | |
//the last [] in the app()->call() can hold arguments such as [user_id] => 10 etc' |