src/ServiceProvider.php
public static function pluckOrLists(Builder $query, $column, $key = null)
	{
		if(\Illuminate\Foundation\Application::VERSION < '5.2') {
			$result = $query->lists($column, $key);
		} else {
			$result = $query->pluck($column, $key);
		}

		return $result;
	}
public static function pluckOrLists(Builder $query, $column, $key = null)
	{
		if(\Illuminate\Foundation\Application::VERSION < '5.2') {
			$result = $query->lists($column, $key);
		} else {
			$result = $query->pluck($column, $key);
		}

		return $result;
	}
public static function pluckOrLists ( Builder $ query , $ column , $ key = null ) { if ( \ Illuminate \ Foundation \ Application :: VERSION < '5.2' ) { $ result = $ query -> lists ( $ column , $ key ) ; } else { $ result = $ query -> pluck ( $ column , $ key ) ; } return $ result ; }
Alternative pluck to stay backwards compatible with Laravel 5.1 LTS.

@param Builder $query
@param $column
@param null $key
@return array|mixed
Alternative pluck to stay backwards compatible with Laravel 5 . 1 LTS .