Свойство | Type | Description | |
---|---|---|---|
$protectedUrl | array | Protected keyword for url first segment |
Свойство | Type | Description | |
---|---|---|---|
$configs | Illuminate\Contracts\Config\Repository | Laravel config instance | |
$model | string | The route model |
Méthode | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Config\Repository $configs, string $model ) | DatabaseRouteRepository constructor. | |
all ( ) : |
Returns all route items | |
create ( array $input ) : |
Save a new route item and return the instance | |
createModel ( ) : |
Create a new instance of the model. | |
delete ( |
Delete the route item from the repository | |
fetchByModule ( string $module ) : |
Retrieve routes by module name | |
fetchBySiteKey ( string $siteKey ) : |
Retrieve routes by site key | |
findByInstanceId ( string $instanceId ) : |
Retrieve a route by instance identifier | |
findByUrlAndSiteKey ( string $url, string $siteKey ) : |
Retrieve a route by url segment and site key | |
getModel ( ) : string | Gets the name of the Eloquent user model. | |
put ( |
Save the route item | |
setModel ( string $model ) | Sets the name of the Eloquent user model. |
Méthode | Description | |
---|---|---|
validateUrl ( string $siteKey, string $url, boolean $isNew ) : boolean | Check validate given url |
public __construct ( Illuminate\Contracts\Config\Repository $configs, string $model ) | ||
$configs | Illuminate\Contracts\Config\Repository | Laravel config instance |
$model | string | The route model |
public all ( ) : |
||
Résultat |
public createModel ( ) : |
||
Résultat |
public fetchByModule ( string $module ) : |
||
$module | string | module name |
Résultat |
public fetchBySiteKey ( string $siteKey ) : |
||
$siteKey | string | site key |
Résultat |
public findByInstanceId ( string $instanceId ) : |
||
$instanceId | string | instance identifier |
Résultat |
public findByUrlAndSiteKey ( string $url, string $siteKey ) : |
||
$url | string | first segment of url |
$siteKey | string | site key |
Résultat |
public put ( |
||
$route | route instance | |
Résultat |
protected Repository,Illuminate\Contracts\Config $configs | ||
Résultat | Illuminate\Contracts\Config\Repository |
public array $protectedUrl | ||
Résultat | array |