app/Http/Controllers/Admin/SettingController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        abort_unless(Gate::allows('setting_access') || Auth::user()->is_superadmin, 403);
        $settings = Setting::all();
        return view('admin.settings.index', compact('settings'));
    }
public function index ( ) { abort_unless ( Gate :: allows ( 'setting_access' ) || Auth :: user ( ) -> is_superadmin , 403 ) ; $ settings = Setting :: all ( ) ; return view ( 'admin.settings.index' , compact ( 'settings' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .