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 | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class EnsureDatabaseIs extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
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 | |
// Create a new subscription | |
$user = User::find(1); | |
$user->newSubscription('main', 'monthly') | |
->trialDays(10) | |
->withCoupon('MADRID2019') | |
->create(); |
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
language: php | |
sudo: false | |
php: | |
- 7.1 | |
- 7.2 | |
- 7.3 | |
- nightly |
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
pre { | |
padding: 1em; | |
border: 1px solid #ddd; | |
border-radius: 3px; | |
background: #f8f8f8; | |
font-size: 90%; | |
line-height: 1.6em; | |
font-family: Menlo, Monaco, monospace, sans-serif !important; | |
} |
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 | |
namespace Tests; | |
trait CanAssertFlash | |
{ | |
protected function assertFlash($level, $message, $important = false, $title = null, $overlay = false) | |
{ | |
$expectedNotification = [ | |
'title' => $title, |