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 | |
use Illuminate\Support\MessageBag, | |
Illuminate\Validation\Factory; | |
/** | |
* A simple wrapper for Laravel's native validator. Allows | |
* validation rules to be modified pre-validation based on | |
* input and can be used to throw an exception with the | |
* input and validation failures |
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 Infrastructure\Database; | |
use DateTime, | |
Domain\Person\PersonEntity as Person, | |
Domain\Person\Name, | |
Domain\Person\Email; | |
class ExamplePersonDomainObjectTransformer extends AbstractTransformer | |
{ |
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 | |
public function index() | |
{ | |
if(Input::get('sort')) { | |
$this->offices->sort(Input::get('sort'), Input::get('direction')); | |
} | |
$offices = $this->offices->all(); | |
return View::make('app.offices.list', compact('offices')); | |
} |
NewerOlder