Stand: SMTP-Test, Admin-Mail-Tab, Notifiable-Fix, Lazy-Quill
- Fix: Notifiable-Trait zum User-Model hinzugefuegt (behebt notify()-500er) - Installer: SMTP-Verbindungstest mit EsmtpTransport + Ueberspringen-Link - Admin: Neuer E-Mail-Tab mit SMTP-Konfiguration + Verbindungstest - Admin: Lazy Quill-Initialisierung (nur sichtbare Locale wird geladen) - Uebersetzungen: 17 neue Mail-Keys in allen 6 Sprachen Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
61
vendor/laravel/framework/src/Illuminate/Routing/RouteUri.php
vendored
Executable file
61
vendor/laravel/framework/src/Illuminate/Routing/RouteUri.php
vendored
Executable file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Routing;
|
||||
|
||||
class RouteUri
|
||||
{
|
||||
/**
|
||||
* The route URI.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $uri;
|
||||
|
||||
/**
|
||||
* The fields that should be used when resolving bindings.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $bindingFields = [];
|
||||
|
||||
/**
|
||||
* Create a new route URI instance.
|
||||
*
|
||||
* @param string $uri
|
||||
* @param array $bindingFields
|
||||
*/
|
||||
public function __construct(string $uri, array $bindingFields = [])
|
||||
{
|
||||
$this->uri = $uri;
|
||||
$this->bindingFields = $bindingFields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse the given URI.
|
||||
*
|
||||
* @param string $uri
|
||||
* @return static
|
||||
*/
|
||||
public static function parse($uri)
|
||||
{
|
||||
preg_match_all('/\{([\w\:]+?)\??\}/', $uri, $matches);
|
||||
|
||||
$bindingFields = [];
|
||||
|
||||
foreach ($matches[0] as $match) {
|
||||
if (! str_contains($match, ':')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$segments = explode(':', trim($match, '{}?'));
|
||||
|
||||
$bindingFields[$segments[0]] = $segments[1];
|
||||
|
||||
$uri = str_contains($match, '?')
|
||||
? str_replace($match, '{'.$segments[0].'?}', $uri)
|
||||
: str_replace($match, '{'.$segments[0].'}', $uri);
|
||||
}
|
||||
|
||||
return new static($uri, $bindingFields);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user