app/DataTables/CodigosDataTable.php
/**
     * Get the query object to be processed by dataTables.
     *
     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection
     */
Get the query object to be processed by dataTables.
Get the query object to be processed by dataTables .
public function query()
    {
	    $codigos = Codigo::select();
	    return $this->applyScopes($codigos);
    }
public function query ( ) { $ codigos = Codigo :: select ( ) ; return $ this -> applyScopes ( $ codigos ) ; }
Get the query object to be processed by dataTables.
Get the query object to be processed by dataTables .