Skip to content

Instantly share code, notes, and snippets.

View The-Hasanov's full-sized avatar
:octocat:

Hikmat The-Hasanov

:octocat:
  • Azerbaijan
View GitHub Profile
@The-Hasanov
The-Hasanov / geojson
Created October 30, 2023 12:35
countries.geojson
This file has been truncated, but you can view the full file.
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"Albania","id":2},"geometry":{"type":"Polygon","coordinates":[[[19.747765747000074,42.57890085900007],[19.746008749000083,42.579934387000065],[19.741357870000115,42.574405009000145],[19.73391646400009,42.56259694500005],[19.73215946400012,42.555543111000134],[19.730299113000115,42.540427755000024],[19.730919230000097,42.53365814300008],[19.7343298750001,42.52438222300006],[19.751589803000087,42.49340220200014],[19.78445601400003,42.47456614300012],[19.801405884000133,42.46813242600007],[19.81959598800009,42.466478780000045],[19.82906279900007,42.46872253700005],[19.835512329000096,42.470251160000146],[19.873339477000087,42.48683929500007],[19.882537883000083,42.49340220200014],[19.882744588000037,42.493557231000096],[19.882744588000037,42.493608907000095],[19.907549276000083,42.50639882400009],[19.956331828000117,42.50531362000007],[19.981756632000042,42.51076548300006],[20.017723429000114,42.546241353000084],[20.039220825000143,42
@The-Hasanov
The-Hasanov / macro.php
Last active April 9, 2019 08:28
Laravel Except route middleware without controller
<?php
\Illuminate\Routing\Route::macro('except', function ($excepts) {
/**
* @var Illuminate\Routing\Route $this
*/
$excepts = is_array($excepts) ? $excepts : func_get_args();
foreach ($excepts as $middleware) {
if (($index = array_search($middleware, $this->action['middleware'], true)) !== false) {
unset($this->action['middleware'][$index]);
}