Skip to content

Instantly share code, notes, and snippets.

View oliveiramiguel's full-sized avatar

Miguel Oliveira oliveiramiguel

View GitHub Profile
<?php
use Phulp;
Phulp\Phulp::task('default', function (Phulp\Builder $b) {
$b->start(['clear'])
->src(['src/'], '/php$/', false)
->pipe(function() {
'xxxxxx';
});
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Illuminate\Http\Exception\PostTooLargeException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
@oliveiramiguel
oliveiramiguel / StoreUserRequest.php
Last active January 6, 2016 14:49
Code example to question posted on PHP Brasil group
<?php
namespace App;
use App\Http\Requests\Request;
class StoreRequest extends Request
{
public function authorize()
{
<?php
interface Model_Interface
{
}
class Model_Cliente implements Model_Interface
{