Skip to content

Unique category slug #22

Open
Open
@cojocaru

Description

@cojocaru

Hi,

When I try to save a category with the same name , because the slug has to be unique I get an Illuminate \ Database \ QueryException .

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'aaa' for key 'categories_slug_unique' (SQL: insert into categories (name, slug, description, order, updated_at, created_at) values (aaa, aaa, aaaa, 4, 2014-03-09 19:57:16, 2014-03-09 19:57:16))

I will try to fix this in one fork soon, so if it will not be fixed meanwhile will propose a pull request, thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions