Releases: bengr-digital/package.admin
Releases · bengr-digital/package.admin
0.9.2
Changes
- Allow only auth users to access
Me
builtin page
Upgrade Guide
- no changes are required to be made
Credits
0.9.1
Changes
Configuration
- embed
media-libary
andactivitylog
configs - embed migrations of
media-library
,activitylog
aauth
libaries - logos properties of
admin.php
config are now reflected into response - global-seach in topbar is true only of at least one page with global search exists
- fixing bugs in
Logout
global actions and in Builtin pages
Upgrade Guide
- structure of page builder changed slightly so if frontend of admin is strict to structure of page builder response, than change it
Credits
0.9.0
Changes
Configuration
- Modifing whole config
- All api routes are now modified in
admin.api
- Dashboard, login and other important pages (even yours) are now putted into
admin.components.pages.register
with use of unique key. The page can be then resolved with use ofAdmin::getPageByKey('dashboard')
- All api routes are now modified in
media-libarary
andactivity-log
packages by spatie are now required by package- Also their migrations comes with migrations of this package
- New method to register renderable handlers
Admin::registerHandler(Handler $handrel)
AdminManager
registerComponents
andregisterComponentsFromDirectory
is now part ofAdminManager
admin
alias for resolving fromservice container
was changed toAdminManager::class
- If page with key of
me
exists inadmin.components.pages.register
its automatically registered into UserMenu Admin::serving
method was changed toAdmin::onServing
- Methods like
authUserModel
,authTokenModel
and more were prefixed withget
AdminManager
was equiped with new methodsgetApiPrefix
,getApiMiddleware
, etc. that describes Api configurationloginPage
anddashboardPage
methods on AdminManager were renamed togetLoginPage
andgetDashboardPage
- These are basically just aliases for
getPageByKey('dashboard')
andgetPageByKey('login')
- These are basically just aliases for
API
- Logout route is gone. Loging admin user out is processed by GlobalAction called
Logout
(you can see this one inadmin.components.global_actions.register
)
Pages
- You are now able to use also class objects as middlewares in pages
- Pages are now resolved in way Laravel Router resolves the routes
- params specified in
slug
of specific page are binded topublic
same-name property on Page and are implicitly binded to that property by its type (Type of this property must be child of Model class) - if there is no
public
property on Matching same name as name of the param inslug
, they wont be properly resolved
- params specified in
$model
property on Page is gone and is no more used as Model for Global search. Instead new paramater called$globalSearchModel
is used as model for global search instead$slug
on Page is being trimed now, allowing to define slug with '/' prefix without problem$largeForm
was removed from Page and is no more present inPageResource
response- Therefore also
getShowOnlyChildren()
andwithoutProps()
methods were removed from Widget
- Therefore also
Widgets
- page is no more passed to FormWidget via current page instance, instead record for form is binded via
record
method exclusively - Property
$widgetColumnSpan
on Widgets was changed to$columnSpan
as well as the setter methodcolumnSpan()
and getter methodgetColumnSpan()
Others
- Adding testing environment including Unit tests
- Exceptions and all other response Entities stoped using
response
function frombengr/support
and started using regular laravelresponse
function
Upgrade Guide
Configuration
- Publish new configuration file
admin.php
because there were significant changes:
php artisan vendor:publish --tag="admin-config"
- In
Handler.php
class remove registered renderable handlers for admin and register them with new builin methodAdmin::registerHandler($this)
AdminManager
- Everywhere you were resolving AdminManager from
service container
byadmin
alias, you have to change that to resolve fromAdminManager::class
- Change all instances of
Admin::serving
toAdmin::onServing
- Carefully check that methods, that you are using from Admin facade are compatible (e.g. authUserModel or authTokenModel)
- Everywhere you were using
loginPage
anddashboardPage
methods, change them to be compatible
API
- On client of administration you have to change logout logic to use logout global action instead of previous logging out route
Pages
- Replace Page
slugs
to be compatible with new way ofslugs
with params - Remove
$model
property on Page and use new$globalSearchModel
to describe model that should be used for global search
Widgets
- Change all
widgetColumnSpan()
and others setters ofcolumnSpan
of widget to new settercolumnSpan()
Others
- Change all instances of using
response
function frombengr/support
to useresponse
function from laravel
Credits
0.5.3
- add actionOnSubmit for FormWidget
- add type for actions describing type of the action
- detectUnsavedChanges on FormWidget
0.5.2
- fixing typos in previous version
0.5.1
- params for call and model property on actions (these props are, at this time, used only by Modal)
dynamic widget connection for actions inside of TableWidget
- it will connect all actions, actionOnClick and bulkActions to current TableWidget instance (ofcourse if there is no handleWidgetId provided)
0.5.0
- fixing static column names in ImageColumn getValue method
- lazyloading methods for ChartWidget
- actions and actionOnClick on TableWidget are able to automatically resolve which modal to open
0.4.9
- remove rule for username input on login page
0.4.8
- fix bugs after last release
0.4.7
- builtin Settings, Login, Me and Dashboard page (rewritable)
- builtin GlobalSearch GlobalAction
- possibility to register global actions through admin config
- cs translations for builtin pages
- add modals builder route for getting instance of modal
- lazyloaded modals
- lazyloaded widgets
- automated ids for widgets and automated connecting actions with modals and widgets (this is still in process so does not work 100%)
- save function for Form is capable of saving PageEditor value
- more convinient GlobalSearch on Page
- automatically resolve hasLargeForm and isGloballySearchable
- activity log on adminuser
- bug fixed on table columns and other widgets
- and more...