LavaLite / cms

Multilingual PHP CMS built with Laravel and bootstrap

Home Page:https://lavalite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compact(): Undefined variable: settings

elbertjose opened this issue · comments

lavalite\framework\src\Litepie\Settings\Http\Controllers\SettingResourceController.php:39

Goto to the file : lavalite\framework\src\Litepie\Settings\Http\Controllers\SettingResourceController.php:39

On fresh install:

/**
 * Display a list of setting.
 *
 * @return Response
 */
public function index(SettingRequest $request)
{
    return $this->response->setMetaTitle(trans('settings::setting.names'))
        ->view('settings::index')
        ->data(compact('settings'))
        ->output();
}

Changed fix :

 * Display a list of setting.
 *
 * @return Response
 */
public function index(SettingRequest $request)
{
    return $this->response->setMetaTitle(trans('settings::setting.names'))
        ->view('settings::index')
        ->data(Setting::all())
        ->output();
}