Laravel dynamic config settings

后端 未结 8 1590
抹茶落季
抹茶落季 2020-12-14 07:13

I\'m using a package within my project and it stores a setting inside config/packagename

I would like to dynamically change this value inside the config

8条回答
  •  醉酒成梦
    2020-12-14 07:20

    Use this in controller when you need to change.

      id; 
    
        Config::set('view_id', $user_id );
    

提交回复
热议问题