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

Added make setting name unique #15

Merged
merged 1 commit into from
Nov 15, 2015
Merged

Added make setting name unique #15

merged 1 commit into from
Nov 15, 2015

Conversation

ruscon
Copy link

@ruscon ruscon commented Oct 22, 2015

No description provided.

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class MakeSettingsNameUnique extends Migration

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each class must be in a namespace of at least one level (a top-level vendor name)

@nWidart
Copy link
Member

nWidart commented Nov 2, 2015

Hello,

Any reason you added this ? Settings are prefixed with the module name so it shouldn't conflict with others.

I personally prefer to have these kind of restrictions in the code too, in a form request if it's really needed.

@ruscon
Copy link
Author

ruscon commented Nov 2, 2015

You can get only one setting by name.
No need duplicating them.

nWidart added a commit that referenced this pull request Nov 15, 2015
Added make setting name unique
@nWidart nWidart merged commit a669939 into AsgardCms:develop Nov 15, 2015
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

Successfully merging this pull request may close these issues.

3 participants