2.2

Having trouble editing the grid to ONLY allow model, and only afterwards add the pagination, so we can add search sort. etcetera.To give an example of how I did this in Orchestra 1.x:

```php
	/**
	 * Attach Eloquent results as row and allow pagination (if required)
	 *
	 * <code>
	 *		// add model without pagination
	 *		$table->with(User::all());
	 *
	 *		// add model with pagination
	 *		$table->with(User::paginate(30), true);
	 * </code>
	 *
	 * @access public	
	 * @param  Eloquent $model
	 * @param  bool     $paginate
	 * @return void
	 */
	public function with($model)
	{
		$this->model    = $model;
			
		
		//search
		if($this->searchable)
		{
			//get input
			$search = \Input::get('q');
			foreach($this->searchable_columns as $column)
			{
				$this->model = $this->model->or_where($column, 'like', '%' . $search . '%'); 
			}
		}
		if($this->sortable)
		{
	
			$current_sort = \Input::get('sort');
			$current_order = \Input::get('order');
			if(in_array($current_sort, $this->sortable_columns) && in_array($current_order, array('asc', 'desc')))
			{
				\Log::write('info', $current_sort . ' and ' . $current_order);
				$this->model = $this->model->order_by($current_sort, $current_order);
			}
			
		}
		
		if($this->paginate)
		{
			$this->model = $this->model->paginate($this->per_page);
			$last_query = \DB::last_query();
			
			\Log::write('info', print_r($last_query, true));
			$this->search_time = $last_query['time'];
			$this->rows($this->model->results);

		}
		else
		{

			$this->rows($this->model->get());
		}
	}
```

This worked really well. Cant get this to work on Orchestra 2
Yes, pagination should happen last because that forces a query on the DB, should it should be in the grid.

If we were to keep it backwards compatible, it could of course handle any old ways of doing it until 2.3, but those that use the old way of doing things (i.e. `get()` or `paginate()` on the model before giving it to the `grid` class with `with($model)`) they would not be given access to `searchable` or `sortable` if not compatible.

How would you handle this?