Свойство | Тип | Описание | |
---|---|---|---|
$protectedUrl | array | Protected keyword for url first segment |
Свойство | Тип | Описание | |
---|---|---|---|
$configs | Illuminate\Contracts\Config\Repository | Laravel config instance | |
$model | string | The route model |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 ( ) : |
||
Результат |
public createModel ( ) : |
||
Результат |
public fetchByModule ( string $module ) : |
||
$module | string | module name |
Результат |
public fetchBySiteKey ( string $siteKey ) : |
||
$siteKey | string | site key |
Результат |
public findByInstanceId ( string $instanceId ) : |
||
$instanceId | string | instance identifier |
Результат |
public findByUrlAndSiteKey ( string $url, string $siteKey ) : |
||
$url | string | first segment of url |
$siteKey | string | site key |
Результат |
public put ( |
||
$route | route instance | |
Результат |
protected Repository,Illuminate\Contracts\Config $configs | ||
Результат | Illuminate\Contracts\Config\Repository |
public array $protectedUrl | ||
Результат | array |