Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BjyAuthorize settings file connect with database table

I am using BjyAuthorize to control access in my project.

Everything working as expected with hard coded settings in module.bjyauthorize.global.php file. But my requirement is to set users dynamically and assign their user levels dynamically.

So I want to connect this file to DB tables some how and dynamically load settings. Please someone help me to get my thing done

Thank you

like image 313
Ariks Avatar asked Sep 04 '26 11:09

Ariks


1 Answers

You have to create your own Providers or Guards that will load the settings from the database. See BjyAuthorize\Provider\Role\ZendDb or BjyAuthorize\Provider\Role\ObjectRepositoryProvider.

like image 129
Gocha Ossinkine Avatar answered Sep 06 '26 22:09

Gocha Ossinkine



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!