Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color field required #1

Closed
kirchaj opened this issue Feb 12, 2016 · 3 comments
Closed

Color field required #1

kirchaj opened this issue Feb 12, 2016 · 3 comments

Comments

@kirchaj
Copy link

kirchaj commented Feb 12, 2016

When I am adding a new role it keeps flashing the error "color field required". there doesn't appear to be a place to select a color.

I love your work btw. I think I can use your work in a project of mine. thanks for the efforts.
Tony

@ConsoleTVs
Copy link
Owner

Hello! i did not expect that error, it have an easy fix tho, you have a simple array settings in the RoleController, where you can see the validator settings, simply remove the color line from there, or add a "color" field in the role migration :p

EDIT: This will be fixed today night!

@ConsoleTVs
Copy link
Owner

The point is that you can add fields in the database and you'll be able to edit it without adding any code, :p

The lines you need to edit are:

'color' => 'required|unique:roles', (App\Http\ControllersRolesController line 63)
and
'color' => 'sometimes|required|unique:roles,color,'.$role->id, (App\Http\ControllersRolesController line 77)

Simply remove them!

@ConsoleTVs
Copy link
Owner

@kirchaj Thanks for pointing that out, it's fixed in today's relese 1.0.3!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants