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

		// get all results for that entity
		$model = $this->crud['model'];
		$this->data['entries'] = $model::where('active', 1)->get(); // <---- this is where it's different

		$this->prepareColumns(); // checks that the columns are defined and makes sure the response is proper

		$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.list'))
		{
			return view('vendor.dick.crud.list', $this->data);
		}
		else
		{
			return view('crud::list', $this->data);
		}
	}
public function index()
	{
		// if view_table_permission is false, abort
		if (isset($this->crud['view_table_permission']) && !$this->crud['view_table_permission']) {
			abort(403, 'Not allowed.');
		}

		// get all results for that entity
		$model = $this->crud['model'];
		$this->data['entries'] = $model::where('active', 1)->get(); // <---- this is where it's different

		$this->prepareColumns(); // checks that the columns are defined and makes sure the response is proper

		$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.list'))
		{
			return view('vendor.dick.crud.list', $this->data);
		}
		else
		{
			return view('crud::list', $this->data);
		}
	}
Display all rows in the database for this entity.
This overwrites the default CrudController behaviour:
- instead of showing all entries, only show the "active" ones

@return Response