public static function hasColumn(\Illuminate\Database\Eloquent\Model $model, string $column): bool
    {
        $table = $model->getTable();
        $columns = app('cache')->remember('amigrid.columns.' . $table, 60, function () use ($table) {
            return \Schema::getColumnListing($table);
        });
        return array_search($column, $columns) !== false;
    }
public static function hasColumn(\Illuminate\Database\Eloquent\Model $model, string $column): bool
    {
        $table = $model->getTable();
        $columns = app('cache')->remember('amigrid.columns.' . $table, 60, function () use ($table) {
            return \Schema::getColumnListing($table);
        });
        return array_search($column, $columns) !== false;
    }
public static function hasColumn ( \ Illuminate \ Database \ Eloquent \ Model $ model , string $ column ) : bool { $ table = $ model -> getTable ( ) ; $ columns = app ( 'cache' ) -> remember ( 'amigrid.columns.' . $ table , 60 , function ( ) use ( $ table ) { return \ Schema :: getColumnListing ( $ table ) ; } ) ; return array_search ( $ column , $ columns ) !== false ; }
Check if model's table has column

@param \Illuminate\Database\Eloquent\Model $model
@param string                              $column

@return bool
Check if model s table has column