app/Http/Controllers/Admin/SettingController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Setting  $settings
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Setting $setting)
    {
        abort_unless(Gate::allows('setting_edit') || Auth::user()->is_superadmin, 403);
        $this->saveSetting($setting);
        return view('admin.settings.edit', compact('setting'));
    }
public function edit ( Setting $ setting ) { abort_unless ( Gate :: allows ( 'setting_edit' ) || Auth :: user ( ) -> is_superadmin , 403 ) ; $ this -> saveSetting ( $ setting ) ; return view ( 'admin.settings.edit' , compact ( 'setting' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .