X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/vendor/tightenco/ziggy/src
home
/
gfecatvj
/
sites
/
realesbar
/
vendor
/
tightenco
/
ziggy
/
src
/
📁
..
📄
BladeRouteGenerator.php
(2.49 KB)
📄
CommandRouteGenerator.php
(2.67 KB)
📄
Macro.php
(1.23 KB)
📄
RoutePayload.php
(3.39 KB)
📄
ZiggyServiceProvider.php
(1.21 KB)
📁
js
Editing: Macro.php
<?php namespace Tightenco\Ziggy; use Illuminate\Routing\Router; class Macro { const BLACKLIST = 'blacklist'; const WHITELIST = 'whitelist'; public function __construct(Router $router, $list, $group = null) { $this->list = $list; $this->router = $router; $this->group = $group; } public function compile() { if (is_callable($this->group)) { $this->router->group(['listed_as' => $this->list], $this->group); } return $this; } public static function whitelist(Router $router, $group = null) { return (new static($router, static::WHITELIST, $group))->compile(); } public static function blacklist(Router $router, $group = null) { return (new static($router, static::BLACKLIST, $group))->compile(); } public function __call($method, $parameters) { $route = call_user_func_array([$this->router, $method], $parameters); switch ($this->list) { case static::BLACKLIST: $route->listedAs = 'blacklist'; break; case static::WHITELIST: $route->listedAs = 'whitelist'; break; } return $route; } }
Upload File
Create Folder