src/Http/Controllers/SettingCrudController.php
public function edit($id)
	{
		// if edit_permission is false, abort
		if (isset($this->crud['edit_permission']) && !$this->crud['edit_permission']) {
			abort(403, 'Not allowed.');
		}

		// get the info for that entry
		$model = $this->crud['model'];
		$this->data['entry'] = $model::find($id);
		// set the default field type (defined in SettingCrudController)
		if (isset($this->data['crud']['update_fields']))
		{
			$this->crud['fields'] = $this->data['crud']['update_fields'];
		}
		// replace the VALUE field with the one defined as JSON in the database
		if ($this->data['entry']->field) {
			$value_field = (array)json_decode($this->data['entry']->field);
			foreach ($this->crud['fields'] as $key => $field) {
				if ($field['name'] == 'value') {
					$this->crud['fields'][$key] = $value_field;
				}
			}
		}
		$this->prepareFields($this->data['entry']); // prepare the fields you need to show and prepopulate the values

		$this->data['crud'] = $this->crud;
		// load the view from /resources/views/vendor/dick/crud/ if it exists, otherwise load the one in the package
		if (view()->exists('vendor.dick.crud.edit'))
		{
			return view('vendor.dick.crud.edit', $this->data);
		}
		else
		{
			return view('crud::edit', $this->data);
		}
	}
public function edit($id)
	{
		// if edit_permission is false, abort
		if (isset($this->crud['edit_permission']) && !$this->crud['edit_permission']) {
			abort(403, 'Not allowed.');
		}

		// get the info for that entry
		$model = $this->crud['model'];
		$this->data['entry'] = $model::find($id);
		// set the default field type (defined in SettingCrudController)
		if (isset($this->data['crud']['update_fields']))
		{
			$this->crud['fields'] = $this->data['crud']['update_fields'];
		}
		// replace the VALUE field with the one defined as JSON in the database
		if ($this->data['entry']->field) {
			$value_field = (array)json_decode($this->data['entry']->field);
			foreach ($this->crud['fields'] as $key => $field) {
				if ($field['name'] == 'value') {
					$this->crud['fields'][$key] = $value_field;
				}
			}
		}
		$this->prepareFields($this->data['entry']); // prepare the fields you need to show and prepopulate the values

		$this->data['crud'] = $this->crud;
		// load the view from /resources/views/vendor/dick/crud/ if it exists, otherwise load the one in the package
		if (view()->exists('vendor.dick.crud.edit'))
		{
			return view('vendor.dick.crud.edit', $this->data);
		}
		else
		{
			return view('crud::edit', $this->data);
		}
	}
Show the form for editing the specified setting.
This overwrites the default CrudController behaviour:
- instead of showing the same field type for all settings, show the field type from the "field" db column

@param  int  $id
@return Response