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 | |
// before | |
$registry = [ | |
'tests/BasicClass.php' => [ | |
'TestCase', | |
], | |
'tests/ComplexClass.php' => [ | |
'TestCase', | |
'RefreshDatabase', |
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\Providers; | |
use Facebook\WebDriver\Chrome\ChromeOptions; | |
use Facebook\WebDriver\Remote\DesiredCapabilities; | |
use Facebook\WebDriver\Remote\RemoteWebDriver; | |
use Illuminate\Support\ServiceProvider; | |
use Laravel\Dusk\Browser; | |
use Laravel\Dusk\Chrome\ChromeProcess; |
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 | |
// | |
// Say the project is stored in the path /var/html then it could be used like so: | |
// | |
// dynamic_base_path('@storage/app/somefile.txt'); // returns /var/html/storage/ | |
// | |
// dynamic_base_path('/etc/somefile.txt'); // returns /etc/somefile.txt | |
// | |
// Use this in your config files when you want relative paths for your local |
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 | |
\Illuminate\Support\Collection::macro('prioritiseUnique', function ($unique, $proritise) { | |
return $this->sortByDesc($proritise) | |
->unique($unique) | |
->values(); | |
}); |
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 | |
/** | |
* Config for PHP-CS-Fixer 2.10.0 | |
*/ | |
$rules = [ | |
'@PSR2' => true, | |
'@PSR1' => true, |
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
### Keybase proof | |
I hereby claim: | |
* I am peterfox on github. | |
* I am peterfox (https://keybase.io/peterfox) on keybase. | |
* I have a public key whose fingerprint is 15A7 F417 AF0D 2AC5 51B2 472E 35CC 582B 80CC F167 | |
To claim this, I am signing this object: |
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 AppBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
final class TermsPageController | |
{ |
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; | |
use Illuminate\Database\Eloquent\Model; | |
class Task extends Model | |
{ | |
protected $fillable = [ | |
'task' |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# config.vm.define "database" do |database| | |
# database.vm.box = "ubuntu-trusty-server-amd64" |
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
### Keybase proof | |
I hereby claim: | |
* I am peterfox on github. | |
* I am peterfox (https://keybase.io/peterfox) on keybase. | |
* I have a public key whose fingerprint is B0F7 1B02 236A B65E C5F2 B732 750F 23D9 60D3 8FA6 | |
To claim this, I am signing this object: |
NewerOlder