This file contains hidden or 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 | |
namespace App\Support; | |
use Blueprint\Models\Model; | |
use Illuminate\Support\Str; | |
use Blueprint\Generators\ModelGenerator as BaseModelGenerator; | |
class ModelGenerator extends BaseModelGenerator | |
{ |
This file contains hidden or 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
models: | |
Build: | |
project_id: id | |
sha: string | |
message: string | |
ref: string | |
committed_at: datetime | |
build_started_at: datetime nullable | |
build_finished_at: datetime nullable | |
output: text nullable |
This file contains hidden or 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 | |
namespace App\Http\Controllers; | |
use PHPUnit\Framework\TestCase; | |
class ControllerTest extends TestCase | |
{ | |
/** | |
* A basic test example. |
This file contains hidden or 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
return [ | |
'url' => env('APP_URL', env('HEROKU_APP_NAME') ? 'https://' . env('HEROKU_APP_NAME') . '.herokuapp.com' : 'http://localhost'), | |
'key' => strpos(env('APP_KEY'), 'base64:') !== false ? env('APP_KEY') : substr(env('APP_KEY'), 0, 32), | |
]; |
This file contains hidden or 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
'pgsql' => [ | |
'driver' => 'pgsql', | |
'url' => env('DATABASE_URL'), | |
'host' => env('DB_HOST'), | |
'port' => env('DB_PORT'), | |
'database' => env('DB_DATABASE'), | |
'username' => env('DB_USERNAME'), | |
'password' => env('DB_PASSWORD'), | |
'charset' => 'utf8', | |
'prefix' => '', |
This file contains hidden or 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
{ | |
"environments": { | |
"test": { | |
"scripts": { | |
"test-setup": "php artisan migrate --seed", | |
"test": "vendor/bin/phpunit --printer gh640\\\\PhpunitTap\\\\TapResultPrinter" | |
} | |
} | |
} | |
} |
This file contains hidden or 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 | |
namespace App\Http\Middleware; | |
use Fideloper\Proxy\TrustProxies as Middleware; | |
use Illuminate\Http\Request; | |
class TrustProxies extends Middleware | |
{ | |
/** |
This file contains hidden or 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
{ | |
"env": { | |
"APP_NAME": "my-laravel-app", | |
"APP_ENV": "review", | |
"APP_KEY": { | |
"generator": "secret" | |
}, | |
"APP_DEBUG": "true", | |
"LOG_CHANNEL": "errorlog", | |
"DB_CONNECTION": "pgsql", |
This file contains hidden or 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
{ | |
"env": { | |
"DB_CONNECTION": "pgsql", | |
"QUEUE_CONNECTION": "redis", | |
"CACHE_DRIVER": "redis", | |
"SESSION_DRIVER": "redis", | |
"LOG_CHANNEL": "errorlog", | |
"APP_KEY": { | |
"generator": "secret" | |
} |
This file contains hidden or 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
{ | |
"scripts": { | |
"postdeploy": [ | |
"php artisan db:seed", | |
"php artisan passport:client --personal" | |
] | |
} | |
} |