Skip to content

Settings groups!

Latest

Choose a tag to compare

@naffiq naffiq released this 27 Mar 19:02
· 34 commits to master since this release

We introduce you Settings Groups! A better way to handle settings for admin.

Another little update is Maps widget and appropriate new Settings type!

Deprecation notice ⚠️

Since Bridge v0.9.0 brings Settings group feature it will no longer support Settings::getOrCreate('email') function (as well as create and get functions). Use Settings::group('contacts')->getOrCreate('email') instead. We do that in order to force developers to make better user interfaces and experience to content moderators.

You can use Settings::misc()->getOrCreate('settings_i_didn\'t_find_a_place_for') for settings that you did not find places for.

Those methods will be deleted in v1.0.0. In order to migrate to new syntax you can set group_id such as

<?php
Settings::getOrCreate('email', ['group_id' => Settings::group('contacts')->id])

Thanks.