How to edit and save custom config files in Laravel?

前端 未结 4 763
鱼传尺愫
鱼传尺愫 2021-02-04 16:47

I am creating simple web application in Laravel 4. I have backend for managing applications content. As a part of backend i want to have UI to manage applications settings. I wa

4条回答
  •  自闭症患者
    2021-02-04 17:02

    Based upon @Batman answer with respect to current version (from 5.1 to 6.x):

    config(['YOUR-CONFIG.YOUR_KEY' => 'NEW_VALUE']);
    $text = '

提交回复
热议问题