php-casbin/laravel-authz

How to modify the creation time and update time field names

Xanyone opened this issue · 1 comments

The official document of larravel defines const coverage in the model, but we need to create our own data table, change the creation time and update time fields to createTime and updateTime. Can we add created in the configuration file_ At for repair

@Xanyone You can Binding A Singleton for DatabaseAdapter:

$this->app->singleton(DatabaseAdapter::class, function (Application $app) {
    return new DatabaseAdapter($app->make(YourRule::class));
});