Verify that a slug is unique for a given table
This is the code documentation for the SproutCMS project
Search documentation |
function unique()Verify that a slug is unique for a given table
Usagevoid Slug::unique ( string $value , string $table , array $conditions ); Example// Exclude the current record when checking uniqueness $valid->check('slug', 'Slug::unique', 'pages', [['id', '!=', $page_id]]); Arguments
Exceptions thrown
Return value
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|