Bugs/issues reported, pull requests contributed and stuff like that, pushed here and there.
72 contributions so far:
<?php | |
namespace Package\Exceptions; | |
use Exception; | |
use Illuminate\Contracts\Debug\ExceptionHandler as HandlerContract; | |
class Handler implements HandlerContract | |
{ | |
/** |
<?php | |
namespace App\Http\Middleware; | |
class HandleCorsMiddleware | |
{ | |
/** | |
* Handle an incoming request. | |
* | |
* @param \Illuminate\Http\Request $request |
<?php | |
namespace App; | |
use Illuminate\Notifications\Notifiable; | |
use Illuminate\Foundation\Auth\User as Authenticatable; | |
class User extends Authenticatable | |
{ | |
use Notifiable; |
<?php | |
namespace App\Http\Controllers\Auth; | |
use App\User; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Support\Facades\Validator; | |
use Illuminate\Foundation\Auth\RegistersUsers; | |
class RegisterController extends Controller |
<?php // app/Providers/ValidationServiceProvider.php | |
namespace App\Providers; | |
use App\Validation\Validator; | |
use Illuminate\Support\ServiceProvider; | |
class ValidationServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
Bugs/issues reported, pull requests contributed and stuff like that, pushed here and there.
72 contributions so far:
<?php | |
class GeoJSON | |
{ | |
public function __construct(string $geojson) | |
{ | |
$this->_struct = json_decode($geojson); | |
} | |
public static function fromString(string $geojson) |
<?php | |
/* Transpose Macro */ | |
Collection::macro('transpose', function () { | |
$items = array_map(function (...$items) { | |
return $items; | |
}, ...$this->values()); | |
return new static($items); | |
}); |
<?php | |
use Carbon\Carbon; | |
class DateUtils extends Carbon | |
{ | |
public function isSameWeek(Carbon $dt) | |
{ | |
return $this->weekOfYear === $dt->weekOfYear; | |
} |
<?php | |
/** | |
* Laravel trait to allow aliasing table fields. | |
* | |
* @author Paulo Freitas <[email protected]> | |
*/ | |
namespace App; |