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 | |
use SplStack; | |
class Dijkstra | |
{ | |
/** | |
* Holds Stops in a graph structure | |
* | |
* @var array |
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\Unit; | |
use App\Admin; | |
use Tests\TestCase; | |
use Illuminate\Foundation\Testing\WithFaker; | |
use Illuminate\Foundation\Testing\RefreshDatabase; | |
class AdminTest extends TestCase |
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
// Here we're just overriding the "getMessage()" function from Laravel 5.6 to accept translation choices. | |
<?php | |
namespace App\Services; | |
use Illuminate\Validation\Validator; | |
use Illuminate\Support\Str; | |
class GenderizedValidator extends Validator { | |
protected function getMessage($attribute, $rule) |